- Why moving from c9 to local docker containers?
- Why ICEcoder?
- Steps to follow
I decided to save some money and leave my data on my maschine. Cloud9 runs the ACE Editor connected to containers called workspaces. One can create as many workspaces as needed and access them with an URL and start editing code, accessing terminals and interacting with it via the Browser.
This was indeed very nice especially the fact that those workspaces were isolated containers.
But as mentioned, I want to safe some money and have all my stuff locally for now.
Besides those hard facts, this was a nice project for an evening :)
After trying to setup ACE Editor, I recognized that the nice file browser on c9 is an extension they made and this is not included in the ACE Editor itself. So this was the point I was searching for other browser based IDEs / code editors.
ICEcoder looked nice at the first glance and has a file browser so the decision was made.
Plus: only PHP is needed to run it! Very few dependencies, small space used (compared to a lot of npm modules with ACE!).
I created a Github repository for easy cloning (and for me also):
The idea was to migrate away from cloud9 and still have isolated development environments as containers Docker seemed the right choice for this task and ICECoder looked nice with minimal dependencies.
Build base image and image in one command and then run it
sudo ./build.sh && sudo docker run -p 80:80 -d rdev-container
Build the base image
cd base-image && sudo docker build -t rdev-base . && cd ..
Build the image
sudo docker build -t rdev-container .
Build the image (without cache)
sudo docker build --no-cache -t rdev-container .
Running the image
sudo docker run -p 80:80 -d rdev-container
Where to put your code / project folder?
Put your code under
- Clone my Github repo
- Follow steps in Readme - Quickstart
- Open URL: http://localhost/ice
git clone https://github.com/DarkSmile92/rdev-container rdev-container cd rdev-container && sudo sh ./build.sh sudo docker run -p 80:80 --name devEnv1 -d rdev-container
- Clone my Github repo
git clone https://github.com/DarkSmile92/rdev-container rdev-container
- Build docker base image and the final image
I decided to split it up in case dependencies have to be changed.
- Run it with a name like devEnv1:
sudo docker run sudo docker run -p 80:80 --name devEnv1 -d rdev-container