Example Simple NodeJS Application for Docker demo
- https://gist.github.com/abtris/6aca9b2668b8b5af0208
Video
- https://www.youtube.com/watch?v=p6olO6NChno&feature=youtu.be
12. Example of using Docker
4 build documentation in Sphinx with latex
support
4 executing code in many different
programming languages without requiring
a single compiler or script interpreter on
your machine - docker exec
4 running gui app in docker at linux
GDG Spaghetti Code Liberec, 6.10.2015 12
13. Example of using Docker
4 development without install ing many
tools at local machine
4 Vagrant, Otto dev
4 continues integration using docker
4 Jenkins, TravisCI, CircleCI
4 DevOps platform for build, deploy and
manage apps across any cloud - Tutum
GDG Spaghetti Code Liberec, 6.10.2015 13
22. Dockerfile
# Firefox over VNC
#
# VERSION 0.3
FROM ubuntu
# Install vnc, xvfb in order to create a 'fake' display and firefox
RUN apt-get update && apt-get install -y x11vnc xvfb firefox
RUN mkdir ~/.vnc
# Setup a password
RUN x11vnc -storepasswd 1234 ~/.vnc/passwd
# Autostart firefox (might not be the best way, but it does the trick)
RUN bash -c 'echo "firefox" >> /.bashrc'
EXPOSE 5900
CMD ["x11vnc", "-forever", "-usepw", "-create"]
GDG Spaghetti Code Liberec, 6.10.2015 22
28. Docker machine
4 Machine lets you create Docker hosts on
your computer, on cloud providers, and
inside your own data center.
4 part of Docker toolbox
4 replacement for boot2docker
GDG Spaghetti Code Liberec, 6.10.2015 28
40. Start development environment
$ docker-compose up web
Building web...
...
$ curl "http://$(docker-machine ip dev):8080"
GDG Spaghetti Code Liberec, 6.10.2015 40