Coder Social home page Coder Social logo

coder-server's Introduction

Coder

Development environment which allows edit files on remote servers by the browser.

Quick start

You need to have docker installed.

Than go to directory with your files and run:

docker run -v $PWD:/home/coder/project pkalemba/coder-server

Server will listening on 0.0.0.0:8443 and docker expose port 8443, so open it on firewall or redirect to other port using -p switch in docker run. Copy password from

Setup Settings Sync

Coder project is using Settings Sync plugin by shanalikhan which is using Github GIST.

If you have your envrionment synced to gist you can use GIST_ID and GIST_TOKEN variables on docker run.

Example:

docker run -e GIST_ID=f0951649724924b1b4a7a5d9efac -e GIST_TOKEN=4c4712a4141d261ec0ca8f9037950685 pkalemba/coder-server

Setup UID and GID

Make image with specific UID and GID for user inside image to avoid problems with mounted volumes and rights of files

To change UID and GID for docker image it need to be build again with new values.

Default values are:

  • user_gid = 1000
  • user_uid = 1000

If you build it on the system where it will be used and volumes comes from that system you can do:

docker build -t coder --build-arg user_uid=$UID --build-arg user_gid=`id -g` .

Run with your own SSL certificate

Default configuration always run coder with self-signed certificate.

If you have your own certificate you can easily setup it.

Run container with mounted volume where will be your certificate and key and override entrypoint like that:

docker run --name coder -it -v PATH_ON_LOCAL_FILESYSTEM:/home/coder/certs --entrypoint='' pkalemba/coder-server --cert=/home/coder/certs/cert_file_name.crt --cert-key=/home/coder/certs/key_filename.key DIRECTORY_IN_CONTAINER_WITH_CODE

Use environments

In directory environments are Dockerfiles prepared for some environments like python or golang. You can also build you own using the same convention. Every environment Dockerfile as a base uses latest Base coder-server image from docker hub. Always you can change that if you build base image locally. All environments from directory are also build and can be used directly from docker hub. Name of the directory of environment is also tag for image so for example:

./environments/python3 -> pkalemba/coder-server:python3

coder-server's People

Contributors

pkalemba avatar mfrancka avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.