Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Docker, Get used to it !

Julien Vey
December 03, 2013

Docker, Get used to it !

A presentation of Docker use-cases

Julien Vey

December 03, 2013
Tweet

More Decks by Julien Vey

Other Decks in Programming

Transcript

  1. $ docker run $ ./install-XXX.sh Error during install ! Try

    Again ! $ docker run $ echo "Some conf" > XXX.cfg $ ./install-XXX.sh Success !
  2. RUN ./myscript.sh RUN rm -rf myscriptdir RUN ./myotherscript.sh $ docker

    commit $id me/snap $ docker commit $id me/snap $ docker run me/snap
  3. $ install $ install $ install $ install $ install

    $ install Tomcat Vert.x NodeJS Apache PHP Mongo
  4. Tomcat Vert.x NodeJS Apache PHP Mongo $ configure $ configure

    $ configure $ configure $ configure $ configure
  5. Do this for each Developer $ configure $ configure $

    configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure $ configure
  6. Tomcat Vert.x NodeJS Apache PHP Mongo $ configure $ configure

    $ configure $ configure $ configure $ configure Configure a Container Once
  7. just run it for each developer $ docker run $

    configure $ configure $ configure $ configure $ configure $ configure $ docker run $ configure $ configure $ configure $ configure $ configure $ configure $ docker run $ configure $ configure $ configure $ configure $ configure $ configure
  8. On any (Linux) environment $ docker run $ configure $

    configure $ configure $ configure $ configure $ configure $ docker run $ configure $ configure $ configure $ configure $ configure $ configure $ docker run $ configure $ configure $ configure $ configure $ configure $ configure
  9. Or split by services $ docker run NodeJS $ configure

    Apache $ configure $ docker run MongoDB $ configure $ docker run
  10. Or split by services $ docker run NodeJS $ configure

    Apache $ configure $ docker run MongoDB $ configure $ docker run and run ONLY what you need
  11. Deliver Code Test Deploy to Integration Deploy to Staging Deploy

    to Production Install environment Configure Migration scripts Deploy deliverable Install environment Configure Migration scripts Deploy deliverable Install environment Configure Migration scripts Deploy deliverable
  12. Deliver a container Test Deploy to Integration Deploy to Staging

    Deploy to Production $ docker run $ docker run $ docker run Install environment Configure Migration scripts Deploy deliverable Install environment Configure Migration scripts Deploy deliverable Install environment Configure Migration scripts Deploy deliverable
  13. User $git push triggers build - build project - build

    container deploys and run container
  14. User $git push triggers build - build project - build

    container deploys and run container Everything is a container
  15. User $git push triggers build with Promoted Builds Plugin promote

    to staging promote to integration promote to production