Code Monkey home page Code Monkey logo

docker-cloud9v3's Introduction

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.

docker-cloud9v3's People

Contributors

gai00 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

jguarecuco

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.