D CKER
Ouadie LAHDIOUI
IT Consultant @ SOAT
*Image source : Devoops culture comic by DZone
*Image source : Devoops culture comic by DZone
WTF...It works fine for me !
WTF.... We haven't the same version of NodeJS !
Don't forget to do that on PPRD
D CKER
An open-source project that automates the deployment of applications inside software containers...provides an additional layer of abstraction and automation of operating-system-level virtualization on Windows and Linux.
Docker is an open-source tool to build and deploy your distributed applications easily in a sandbox that can be run on any linux host later
(called container later)
This is how VMs works
This is how actually containers works
This is your base image
This is a container
FROM ubuntu
MAINTAINER Ouadie LAHDIOUI
RUN apt-get install -y software-properties-common python
RUN add-apt-repository ppa:chris-lea/node.js
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y nodejs
#RUN apt-get install -y nodejs=0.6.12~dfsg1-1ubuntu1
RUN mkdir /var/www
ADD app.js /var/www/app.js
CMD ["/usr/bin/node", "/var/www/app.js"]
FROM ubuntu
MAINTAINER Ouadie LAHDIOUI
RUN apt-get install -y software-properties-common python
RUN add-apt-repository ppa:chris-lea/node.js
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y nodejs
#RUN apt-get install -y nodejs=0.6.12~dfsg1-1ubuntu1
RUN mkdir /var/www
ADD app.js /var/www/app.js
CMD ["/usr/bin/node", "/var/www/app.js"]