You are here

Installation of ICEcoder within Docker

ICEcoder (http://icecoder.net) is a code editor which runs within the developer's browser.  The below Dockerfile builds on the apache-php image we've already created (http://lastmilesynergy.com/?q=node/46).

From within a new directory, create an empty Dockerfile and download the ICEcoder zip file (http://icecoder.net/download-zip).

$ touch Dockerfile
$ wget http://icecoder.net/download-zip

Edit the Dockerfile with the following instructions:

# ICEcoder Server # Version 0.1
FROM apache-php:latest
MAINTAINER Last Mile Synergy, LLC
 
RUN apt-get update && apt-get install -y unzip
 
ADD ./download-zip /opt/download-zip
RUN unzip /opt/download-zip -d /var/www/
RUN mv /var/www/ICEcoder\ v3.3 /var/www/icecoder
RUN mkdir /var/www/dev
RUN chmod -R 777 /var/www/icecoder/backups /var/www/icecoder/lib /var/www/icecoder/test
RUN chmod -R 777 /var/www/dev 
 
CMD ["/usr/sbin/apache2", "-D", "FOREGROUND"]
 
(NOTE: You'll need to change /var/www/ICEcoder_v3.3 to reflect the root directory of the zipped archive.)
 
$ sudo docker build -rm -t icecoder .
$ sudo docker run -d -p 127.0.0.1:80:80 icecoder
 

$ sudo docker ps
 

CONTAINER ID        IMAGE                   COMMAND                   CREATED              STATUS                   PORTS                         NAMES
9ce38dcf55bd           icecoder:latest     /usr/sbin/apache2 -D   4 seconds ago       Up 3 seconds        127.0.0.1:80->80/tcp   jolly_darwin 

 

Due to the -p attribute, we've linked the Host's localhost:80 to the Container's IP:80 (in this case, 172.17.0.50:80).
 
Open a browser and go to http://localhost/icecoder to see the ICEcoder web development tool.

 

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer