c9
c9 in a docker container running node 4.6.0 via nvm on debian
Usage
docker run -d -p :80 deffyc/c9
- Find external port on host via
docker ps
:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
942d87429a7d c942a246bd79 "/bin/sh -c '/home/$user/.n" 58 seconds ago Up 57 seconds 0.0.0.0:32770->80/tcp elated_lamport
- Visit
http://localhost:32770
- User Name:
c9
- Password:
rules
- User Name:
Features
Custom C9 Port
- at runtime like:
docker run -d --env c9port=8181 -p :8181 deffyc/c9
- at buildtime like:
example
- build it:
docker build --build-arg c9port=8282 .
...Successfully built 891d895beadf
docker run -d -p :8282 891d895beadf
- build it:
Custom Authentication
- at runtime like:
docker run -d -e user=foo -e pass=bar -p :80 deffyc/c9
- at buildtime like:
docker build --build-arg user=foo --build-arg pass=bar .
Custom Workspace
- at runtime like:
docker run -d -e workspace="/baz" -p :80 deffyc/c9
- at buildtime like:
docker build --build-arg workspace="/baz" .
Change username && password
the system default username/password is c9/rules,it's created in docker,so you need to change it at "/etc/passwd" and "/etc/shadow"
Docker Hub
https://hub.docker.com/r/deffyc/c9