Sign inSign up

gai00/cloud9v3

By gai00

•Updated about 9 years ago

Base: Ubuntu:16.04, Container: Cloud9 Core SDK v3

Image
0

1.0K

gai00/cloud9v3 repository overview

⁠Docker Cloud9 v3

Github: https://github.com/gai00/docker-cloud9v3⁠
Docker hub: https://registry.hub.docker.com/u/gai00/cloud9v3/⁠
Reference: https://hub.docker.com/r/sapk/cloud9/⁠

⁠About

This Docker Container version is Cloud9 Core SDK v3 on Ubuntu 16.04,
with ubuntu user permission. (yes, not root.)

PS: ubuntu didn't setup development environment, only node v4 to run cloud9 server.

⁠-- bash file can be found on github --

⁠init: (init.sh)

This step is for keep user settings.
(not include linux environment state)

mkdir workspace
mkdir workspace/.c9
touch user.settings
touch state.settings
touch project.settings
sudo chown 999:docker -R ./workspace *.settings

chown 999 uid is my docker-cloud9 gave when I sudo chown ubuntu:ubuntu on my workspace in docker.

⁠usage: (start.sh)

Fully settings and port features version.

docker run -d \
    -v $(pwd)/workspace:/home/ubuntu/workspace \
    -v $(pwd)/user.settings:/home/ubuntu/.c9/user.settings \
    -v $(pwd)/state.settings:/home/ubuntu/workspace/.c9/state.settings \
    -v $(pwd)/project.settings:/home/ubuntu/workspace/.c9/project.settings \
    --expose 8181 \
    --expose 8080-8082 \
    -p 8181:8181 \
    -p 8080:8080 \
    -p 8081:8081 \
    -p 8082:8082 \
    gai00/cloud9v3 \
    --collab \
    --auth cloud9:cloud9v3

⁠Connect

  1. open browser
  2. go to http://[your ip or localhost]:8181
  3. input username and password.
  4. enjoy, or sudo chown ubuntu: -R ~/workspace after start then refresh.

⁠Custom

if you want to change login username:password, modify --auth parameters you want.

--expose 8181

cloud9 ide container listening
--expose 8080-8082 for service you write.
-p 8181:8181 mapping port to outside, if you want to connect with other port, change this.
ex: -p 9000:8181 change port to http://localhost:9000/⁠
--collab as name, useful for multi-user, sad on auth.
--auth username:password change auth username/password.

Tag summary

Content type

Image

Digest

Size

286.4 MB

Last updated

about 9 years ago

docker pull gai00/cloud9v3