This repository contains Dockerfile for the Cloud9 IDE SDK image. I am currently using this image for my Kubernetes Cloud9 deployments, but put this up there in case someone was having the same problems I had when trying to find a viable solution.
FROM ubuntu:16.04
The most up-to-date Cloud9-sdk build via https://github.com/c9/core.git
Updates to the following modules were made to secure vulnerabilities not covered in the initial install-sdk.sh script for Cloud9-SDK after the update of NODEJS and Ubunutu:16.04
- pug-cli
- minimatch@3.0.2
https://github.com/mst3v3nsn/cloud9-ide
git clone https://github.com/mst3v3nsn/cloud9-ide
cd cloud9-docker/
- replace "username" with the username for which the container is being created for and "uid/gid" respectively
- specify path to nfs export for "/path/to/nfs/export/for/username" including the server FQDN or IP in the full path
docker run -it -d \
--name username-c9 \
--user=uid:gid \
--mount type=volume,volume-driver=nfs,source=/path/to/nfs/export/for/username,target=/workspace/username \
-p 80:80 \
mstev0du/cloud9-ide:latest
NOTE: for this option to work docker-netshare-volume plugin must be installed and running on host machine. https://github.com/ContainX/docker-volume-netshare
If installed correctly, run the plugin using with the command:
sudo service docker-netshare-volume start
For kubernetes deployments, specify:
nfs:
server: serverName
path: /path/on/server
docker run -it -d --user=0:0 -p 80:80 mstev0du/cloud9-ide:latest