GithubHelp home page GithubHelp logo

cloud9's Introduction

Cloud9 IDE Dockerfile

This repository contains Dockerfile of Cloud9 IDE with some usefull features for convenience and secure development environment for Docker's automated build published to the public Docker Hub Registry.

features:

  • Auto protect the IDE with user defined (or default) password.
  • SSH access to the container using user defined(or generated) password and or user defined SSH key.
  • Custom container workspace directory (make it easier to link with VOLUME_FROM other container, not just host directory mapping).
  • Optimized build process (please suggest if any idea to make it better)

Base Docker Image

tutum/ubuntu:trusty

Installation

Install Docker.

Download automated build from public Docker Hub Registry:

docker pull agungf/cloud9-ide

alternatively, you can build an image from Dockerfile:

docker build -t="$USER/cloud9-ide" github.com/agungf/cloud9-ide

Basic Usage

docker run -it -d -p 8181:8181 -p 2222:22 agungf/cloud9-ide

It will take care all the defaults to:

  • Cloud9 Basic http auth User root , with DEFAULT password: secret
  • See Auto generated SSH password for root at log, docker logs <continer instance name>
  • Workspace directory at /cloud9/workspace

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

docker run -it -d -p 8181:8181 -v /your-path/workspace/:/cloud9/workspace agungf/cloud9-ide

Advance Usage

Get the latest version from github

git clone https://github.com/agungf/cloud9-ide
cd cloud9-ide/

Run with docker compose:

docker-compose up -d

Example docker-compose.yml:

ide:
  build: .
  environment:
    - ROOT_PASS=thesecrets
    - C9_WORKSPACE=/data/workspace
  volumes_from:
    - data
  ports:
    - 8181:8181
    - 22
data
    image:tutum/ubuntu
    volumes:
    - /data/workspace

It will set the parameters to:

  • Cloud9 Basic hhtp Auth User root , with password: thesecrets
  • SSH root password : thesecrets
  • Workspace directory at /data/workspace linked to VOLUME_FROM data container

Set SSH Key

See tutum/ubuntu README

Happy Coding !!

cloud9's People

Contributors

jguarecuco avatar

Watchers

 avatar  avatar

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.