Code Monkey home page Code Monkey logo

docker-cloud9's Introduction

docker-cloud9

Docker hub: https://registry.hub.docker.com/u/gai00/cloud9/ #Usage

docker run -d -v $(pwd):/workspace -p 3131:3131 gai00/cloud9

#Usage2 (with username and password)

docker run -d -v $(pwd):/workspace -p 3131:3131 gai00/cloud9 --username test --password testpass

#Usage3(with custom port)

docker run -d -v $(pwd):/workspace -p 13131:13131 gai00/cloud9 -p 13131

PS: host and guest port must be same, cloud9 web-server response content include port information.

Fail EX:

# fail
docker run -d -v $(pwd):/workspace -p 13131:3131 gai00/cloud9 

Browser websocket will connect to host:3131, cannot running and excute console commands

Image Size: 907.5 MB

#How to install something by ppa

EX: (cloud9 console)

echo 'apt-get update; apt-get install -y libsqlite3-dev' | bash -l

#How to support ruby on rails

Go to my github, enter the /ruby/ folder, save Dockerfile to your computer, and build.

docker build -t yourname/cloud9:ruby .

And then, run yourname/cloud9:ruby and add -p 3000:3000 for rails, use "rbenv" in cloud9 console to install ruby.

cloud9 console:

rbenv install -l
rbenv install 2.1.2
rbenv global 2.1.2
rbenv rehash
ruby -v
gem -v
gem install rails
rails -v
echo 'apt-get update; apt-get install -y libsqlite3-dev' | bash -l
rails new demo
cd demo
rails s -p 3000

Remember commit your container after you install ruby and rails, or you will lost these change.

docker-cloud9's People

Contributors

gai00 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-cloud9's Issues

Running applications inside the container

Hi @gai00

How can I run the applications inside the Docker container??? Since there's only one port open 3131, I can't connect to the application when I do "Run"...

screen shot 2014-10-15 at 12 18 10 pm

The port numbers are randomly assigned by the Cloud9 Editor... Is there a way to set a static port number instead? That way, it would be easier to run it from Docker.

Thanks a lot!

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.