Sign inSign up

deffyc/c9

By deffyc

•Updated over 8 years ago

do not use root to run c9

Image
0

1.4K

deffyc/c9 repository overview

⁠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

⁠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
⁠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⁠

⁠based on

https://hub.docker.com/r/_/debian/⁠

Tag summary

Content type

Image

Digest

Size

546.5 MB

Last updated

over 9 years ago

docker pull deffyc/c9