Sign inSign up

minhnhut/cloud9

By minhnhut

Updated over 8 years ago

Simple customize-able dockerized Cloud9

Image
0

683

minhnhut/cloud9 repository overview

Cloud9 v3 Dockerfile

This is a fork of kdelfour/cloud9-docker. Many thanks to kdelfour for making this lightweight docker image of Cloud9. It uses only around ~110MB when idle. ;) This repo contains some of my modification to make the cloud9-docker more flexibility.

Base Docker Image

kdelfour/supervisor-docker

Installation

Install Docker.

Download automated build from public Docker Hub Registry: docker pull kdelfour/cloud9-docker

(alternatively, you can build an image from Dockerfile: docker build -t="kdelfour/cloud9-docker" github.com/kdelfour/cloud9-docker)

Usage

docker run -it -d -p 80:80 minhnhut/cloud9-docker

You can add a workspace as a volume directory with the argument -v /your-path/workspace/:/workspace/ like this :

docker run -it -d -p 80:80 -v /your-path/workspace/:/workspace/ minhnhut/cloud9-docker

You can pass some extra parameters to node /cloud9/server.js by using Enviroment variable: C9_EXTRA Example:

docker run -it -d -p 80:80 -v minhnhut/cloud9-docker -e C9_EXTRA='--auth user:password'

Above usage enable built-in basic authentication of cloud9-sdk with 'user' as username, and 'password' as password.

Build and run with custom config directory

Get the latest version from github

git clone https://github.com/minhnhut/cloud9-docker
cd cloud9-docker/

Build it

sudo docker build --force-rm=true --tag="$USER/cloud9-docker:latest" .

And run

sudo docker run -d -p 80:80 -v /your-path/workspace/:/workspace/ $USER/cloud9-docker:latest

Enjoy !!

Tag summary

Content type

Image

Digest

Size

392.1 MB

Last updated

over 8 years ago

docker pull minhnhut/cloud9