Docker Based Infrastructure

Docker Based Infrastructure

Find out what is Docker (and what it isn't) and how it can change the way your team uses software and hardware technology.

B82b1da7a58dcf37c8f0461c5c08ec0a?s=128

Ricardo Coelho

January 19, 2017
Tweet

Transcript

  1. D O C K E R B A S E

    D I N F R A S T R U C T U R E R I C A R D O C O E L H O
  2. – H A L F T H E P E

    O P L E “Docker is NOT virtualization”
  3. – T H E O T H E R H

    A L F “Docker IS virtualization”
  4. – S O M E G U Y W H

    O K N O W S S T U F F “It is, indeed. But not the way you might think.”
  5. H Y P E R V I S O R

    I T ’ S N O T A N
  6. R E S O U R C E S H

    A R I N G S T R AT E G Y B U T R AT H E R A B A L A N C E D
  7. K E R N E L - B A S

    E D V I R T U A L M A C H I N E A L S O K N O W N A S
  8. I ’ M A D E V W H Y

    S H O U L D I C A R E ?
  9. W E L L … T O Q U O

    T E A F E W… • No more “Works on my machine” • Dev and Prod environments are exactly the same • All dependencies are provided, so… • Zero configuration deploy • Need a quick fix? Just start it all over again…
  10. I ’ M A S E R V E R

    G U Y W H Y S H O U L D I C A R E ?
  11. A G A I N … • No more “Works

    on my machine” • Dev and Prod environments are exactly the same • All dependencies are provided • Zero configuration deploy • Need a quick fix? Just start it all over again…
  12. P L U S … • Easy to expand •

    One ring to update them all • Do you really wanna know about Java dependencies? • Is it broken? Not your fault… The metal is hot…
  13. I ’ M A N E T W O R

    K G U Y I D O N ’ T C A R E
  14. S U R E . M O V I N

    G O N …
  15. D O C K E R I M A G

    E S B U I L D I N G
  16. D O C K E R F I L E

    FROM php:7.0-apache MAINTAINER Ricardo Coelho <ricardo@nexy.com.br> COPY config/php.ini /usr/local/etc/php/ COPY src/ /var/www/html/ RUN curl -sS https://getcomposer.org/installer | \ php -- --install-dir=/usr/local/bin --filename=composer && \ chmod +x /usr/local/bin/composer
  17. A L P I N E L I N U

    X FROM scratch ADD rootfs.tar.gz /
  18. D O C K E R H U B

  19. WAT C H O U T F O R Y

    O U R M I N D S E T… … T H I S I S J U S T E M B A R A S S I N G ! D E B I A N A PA C H E M Y S Q L P H P D R I V E R A P P L I C AT I O N Ridiculous Image
  20. T H AT ’ S WAY B E T T

    E R ! D E B I A N M Y S Q L Database D E B I A N A PA C H E P H P A P P L I C AT I O N Application PAT H Volume
  21. I S N ’ T T H AT H A

    R D E R T O M A N A G E ?
  22. D O C K E R C O M P

    O S E O F C O U R S E N O T ! M E E T
  23. D O C K E R - C O M

    P O S E . Y M L version: '2' services: web: image: nexy/php7.0:apache ports: - "8080:80" volumes: - nexy:/var/nexy/ depends_on: - db db: image: postgres:9.6.1-alpine expose: - "5432" volumes: - nexy:/var/nexy/ volumes: nexy: driver: local
  24. D O C K E R - C O M

    P O S E U P
  25. W H AT I F I T O U T

    G R O W S M Y S E R V E R ?
  26. D O C K E R S WA R M

  27. A N D W H AT I F I T

    O U T G R O W S M Y D ATA C E N T E R ?
  28. C A N I H A Z C L O

    U D P L AT F O R M S ?
  29. H E T E R O G E N E

    O U S T H E R E M I G H T B E A S L I G H T P R O B L E M I F Y O U R E N V I R O N M E N T I S
  30. K U B E R N E T E S

  31. 08 mar

  32. T H A N K Y O U !

  33. Q U E S T I O N S ?