Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
DOCKER - WHAT’S THE
MATTER?
MICHAL SZCZUR
MICHAŁ
SZCZUR
SOFTWARE DEVELOPER AT PGS SOFTWARE
BASS GUITARIST, TRUMPETER, FOLK MUSIC ARTIST
@PARTIKUS
AGENDA
▸ Docker - what is it and how it works?
▸ Docker vs Vagrant
▸ How to use Docker at work?
▸ Some examples and stories
WHAT IS
DOCKER?
WHY SHOULD I USE
DOCKER?
WHAT PROBLEMS DOCKER SOLVES?
▸ „it works on my machine”
▸ Reduce build & deploy time
▸ No more configuration spaghetti - or...
DOCKER IS A PLATFORM FOR
DEVELOPERS AND SYSADMINS
TO DEVELOP, SHIP, AND RUN
APPLICATIONS.
docs.docker.com
Symfony
Docker
CONCEPTS
DOCKER
DOCKER CONCEPTS
CONCEPTS
▸ Images
▸ read only
▸ Dockerfile
▸ like a makefile
▸ commands order and cache’ing
▸ extendable
▸ a...
DOCKER
TOOLS
TOOLS
DOCKER SOLUTIONS
▸ DOCKER HUB
▸ DOCKER TRUSTED REGISTRY
▸ TUTUM
▸ DOCKER UNIVERSAL CONTROL PLANE (BETA)
TOOLS
DOCKER TOOLBOX
▸ Docker Machine
▸ Docker Swarm
▸ Docker Compose
▸ Docker Registry
▸ Docker Engine
▸ Kitematic
SEMANTICS
DOCKER REGISTRY
SEMANTIC LIKE GIT
▸ commit
▸ pull
▸ push
▸ images
▸ …
BENEFITS
BENEFITS
▸ Movable - Java’s promise
▸ Lightweight
▸ Independence
DOCKER
VS
VAGRANT
CREATE AND CONFIGURE
LIGHTWEIGHT, REPRODUCIBLE,
AND PORTABLE DEVELOPMENT
ENVIRONMENTS.
vagrantup.com
DOCKER
VS
VAGRANT 

VIRTUAL MACHINE
VAGRANT
==
DOCKER-COMPOSE
HOW TO USE
DOCKER AT
WORK?
LOCAL DEV ENV
DOCKER FOR DEVELOPMENT
TESTING
CONTINUOUS INTEGRATION
TESTING
CONTINUOUS INTEGRATION
▸ run tests per every commit
▸ don’t worry about cleaning up
▸ running parallel tests
CONTINUOUS
DELIVERY
AUTOMATED DEPLOYMENT
DOCKER IN PAAS
MODEL
PAAS
PAAS
▸ DOKKU
▸ DEIS
▸ FLYNN.IO
EXAMPLES
DOCKERFILE
DOCKER
FROM php:5.6-cli
MAINTAINER job@michalszczur.pl
RUN docker-php-ext-install iconv intl mysqli mysql gd mbstring pdo_mysql x...
#!/bin/bash

# ENTRYPOINT
composer install --no-interaction --no-progress
php -S 0.0.0.0:8080 -t web
DOCKER-COMPOSE
DOCKER
hub:
image: selenium/hub
ports:
- "4444:4444"
environment:
- GRID_TIMEOUT=30000
firefox:
image: selenium/node-firefox
link...
docker-compose up -d
docker-compose scale chrome=5 firefox=5
QUESTIONS?
THANKS
LINKS
▸ http://michalszczur.pl
▸ http://docs.docker.com
▸ http://vagrantup.com
▸ http://bit.ly/1IENdHh
▸ https://www.herok...
Docker   what's the matter
Docker   what's the matter
Docker   what's the matter
Nächste SlideShare
Wird geladen in …5
×

von

Docker   what's the matter Slide 1 Docker   what's the matter Slide 2 Docker   what's the matter Slide 3 Docker   what's the matter Slide 4 Docker   what's the matter Slide 5 Docker   what's the matter Slide 6 Docker   what's the matter Slide 7 Docker   what's the matter Slide 8 Docker   what's the matter Slide 9 Docker   what's the matter Slide 10 Docker   what's the matter Slide 11 Docker   what's the matter Slide 12 Docker   what's the matter Slide 13 Docker   what's the matter Slide 14 Docker   what's the matter Slide 15 Docker   what's the matter Slide 16 Docker   what's the matter Slide 17 Docker   what's the matter Slide 18 Docker   what's the matter Slide 19 Docker   what's the matter Slide 20 Docker   what's the matter Slide 21 Docker   what's the matter Slide 22 Docker   what's the matter Slide 23 Docker   what's the matter Slide 24 Docker   what's the matter Slide 25 Docker   what's the matter Slide 26 Docker   what's the matter Slide 27 Docker   what's the matter Slide 28 Docker   what's the matter Slide 29 Docker   what's the matter Slide 30 Docker   what's the matter Slide 31 Docker   what's the matter Slide 32 Docker   what's the matter Slide 33 Docker   what's the matter Slide 34 Docker   what's the matter Slide 35 Docker   what's the matter Slide 36 Docker   what's the matter Slide 37 Docker   what's the matter Slide 38 Docker   what's the matter Slide 39 Docker   what's the matter Slide 40 Docker   what's the matter Slide 41 Docker   what's the matter Slide 42
Nächste SlideShare
Michelle roddawork2
Weiter
Herunterladen, um offline zu lesen und im Vollbildmodus anzuzeigen.

1 Gefällt mir

Teilen

Herunterladen, um offline zu lesen

Docker what's the matter

Herunterladen, um offline zu lesen

Slides from Michal Szczur's talk "Docker - what's the matter?"

Ähnliche Bücher

Kostenlos mit einer 30-tägigen Testversion von Scribd

Alle anzeigen

Ähnliche Hörbücher

Kostenlos mit einer 30-tägigen Testversion von Scribd

Alle anzeigen

Docker what's the matter

  1. 1. DOCKER - WHAT’S THE MATTER? MICHAL SZCZUR
  2. 2. MICHAŁ SZCZUR SOFTWARE DEVELOPER AT PGS SOFTWARE BASS GUITARIST, TRUMPETER, FOLK MUSIC ARTIST @PARTIKUS
  3. 3. AGENDA ▸ Docker - what is it and how it works? ▸ Docker vs Vagrant ▸ How to use Docker at work? ▸ Some examples and stories
  4. 4. WHAT IS DOCKER?
  5. 5. WHY SHOULD I USE DOCKER?
  6. 6. WHAT PROBLEMS DOCKER SOLVES? ▸ „it works on my machine” ▸ Reduce build & deploy time ▸ No more configuration spaghetti - organized configuration ▸ Libs dependency hell ▸ Packed into containers
  7. 7. DOCKER IS A PLATFORM FOR DEVELOPERS AND SYSADMINS TO DEVELOP, SHIP, AND RUN APPLICATIONS. docs.docker.com
  8. 8. Symfony Docker
  9. 9. CONCEPTS DOCKER
  10. 10. DOCKER CONCEPTS CONCEPTS ▸ Images ▸ read only ▸ Dockerfile ▸ like a makefile ▸ commands order and cache’ing ▸ extendable ▸ as a result new image given ▸ Containers - instances of running apps
  11. 11. DOCKER TOOLS
  12. 12. TOOLS DOCKER SOLUTIONS ▸ DOCKER HUB ▸ DOCKER TRUSTED REGISTRY ▸ TUTUM ▸ DOCKER UNIVERSAL CONTROL PLANE (BETA)
  13. 13. TOOLS DOCKER TOOLBOX ▸ Docker Machine ▸ Docker Swarm ▸ Docker Compose ▸ Docker Registry ▸ Docker Engine ▸ Kitematic
  14. 14. SEMANTICS DOCKER REGISTRY
  15. 15. SEMANTIC LIKE GIT ▸ commit ▸ pull ▸ push ▸ images ▸ …
  16. 16. BENEFITS
  17. 17. BENEFITS ▸ Movable - Java’s promise ▸ Lightweight ▸ Independence
  18. 18. DOCKER VS VAGRANT
  19. 19. CREATE AND CONFIGURE LIGHTWEIGHT, REPRODUCIBLE, AND PORTABLE DEVELOPMENT ENVIRONMENTS. vagrantup.com
  20. 20. DOCKER VS VAGRANT 
 VIRTUAL MACHINE
  21. 21. VAGRANT == DOCKER-COMPOSE
  22. 22. HOW TO USE DOCKER AT WORK?
  23. 23. LOCAL DEV ENV DOCKER FOR DEVELOPMENT
  24. 24. TESTING CONTINUOUS INTEGRATION
  25. 25. TESTING CONTINUOUS INTEGRATION ▸ run tests per every commit ▸ don’t worry about cleaning up ▸ running parallel tests
  26. 26. CONTINUOUS DELIVERY AUTOMATED DEPLOYMENT
  27. 27. DOCKER IN PAAS MODEL PAAS
  28. 28. PAAS ▸ DOKKU ▸ DEIS ▸ FLYNN.IO
  29. 29. EXAMPLES
  30. 30. DOCKERFILE DOCKER
  31. 31. FROM php:5.6-cli MAINTAINER job@michalszczur.pl RUN docker-php-ext-install iconv intl mysqli mysql gd mbstring pdo_mysql xsl opcache RUN curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer && chmod +x /usr/local/bin/composer EXPOSE 8080 COPY php.ini /usr/local/etc/php ADD entrypoint.sh /entrypoint.sh VOLUME /var/www WORKDIR /var/www ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
  32. 32. #!/bin/bash
 # ENTRYPOINT composer install --no-interaction --no-progress php -S 0.0.0.0:8080 -t web
  33. 33. DOCKER-COMPOSE DOCKER
  34. 34. hub: image: selenium/hub ports: - "4444:4444" environment: - GRID_TIMEOUT=30000 firefox: image: selenium/node-firefox links: - hub chrome: image: selenium/node-chrome links: - hub
  35. 35. docker-compose up -d
  36. 36. docker-compose scale chrome=5 firefox=5
  37. 37. QUESTIONS?
  38. 38. THANKS
  39. 39. LINKS ▸ http://michalszczur.pl ▸ http://docs.docker.com ▸ http://vagrantup.com ▸ http://bit.ly/1IENdHh ▸ https://www.heroku.com/ ▸ http://progrium.viewdocs.io/dokku/
  • MichaSzczur

    Jan. 17, 2016

Slides from Michal Szczur's talk "Docker - what's the matter?"

Aufrufe

Aufrufe insgesamt

508

Auf Slideshare

0

Aus Einbettungen

0

Anzahl der Einbettungen

6

Befehle

Downloads

11

Geteilt

0

Kommentare

0

Likes

1

×