Dockerization (GDG Riga 02.07.2016)

Dockerization (GDG Riga 02.07.2016)

During this workshop all of you will have one common goal. Only together you will make an application successfully up and running.

You will write Dockerfiles, building images, configuring Docker Compose, even work with Docker Registry.

A9e23925dc5753d5925cb6ef55d71765?s=128

Sergey Kibish

July 02, 2016
Tweet

Transcript

  1. DOCKERIZATION Sergey Kibish / @s_kibish

  2. WHOAMI • Software developer @ Transact Pro • Can’t sit

    still (for a long time) • Believe in Docker
  3. AGENDA • Check & Prepare • A little story •

    Time to get hands dirty • sleep 30.minutes • Have a little bit more fun
  4. CHECK • Docker & Docker Compose (Linux) or Docker Toolbox

    (Mac & Win) installed • Requirements are met
  5. SPLIT IN 4 GROUPS

  6. STORY

  7. STORY Intro: • You are newcomer in the project /

    startup • Project is written using microservices architecture • Each service is written in his own language and has it’s own unique setup Goal: • You need to make this project up and running using Docker P.S. They have README.md’s! :)
  8. TOP VIEW interface logic charger filler Service for card charging

    Service with business logic Service for machine refill Vending machine
  9. GITHUB FLOW 101

  10. https://gist.github.com/Chaser324/ce0505fbed06b947d962

  11. MILESTONES

  12. ISSUES

  13. dockerization/workshop-02072016 http://bit.ly/29ml9jz

  14. STAGE 1

  15. DOCKERFILE 101

  16. EXECUTE EXECUTE DOCKERFILE BODY BODY HEAD HEAD

  17. EXPOSE $PORT CMD [“./app/example”] DOCKERFILE ADD . /app/ RUN apt-get

    update && apt-get install -y nginx FROM ubuntu:latest ENV PORT 8080
  18. DOCKERFILE CMD [“./app/example”] EXPOSE $PORT RUN apt-get update && apt-get

    install -y nginx ADD . /app/ ENV PORT 8080 FROM ubuntu:latest
  19. READY TO ACCEPT PULL REQUESTS

  20. http://bit.ly/29mlySY

  21. STAGE 2

  22. DOCKER COMPOSE 101

  23. DOCKER COMPOSE FILE

  24. READY TO ACCEPT PULL REQUESTS

  25. http://bit.ly/29bsUKq

  26. STAGE 3

  27. DOCKER REGISTRY 101

  28. COMMANDS

  29. DOCKER COMPOSE FILE

  30. READY TO ACCEPT PULL REQUEST

  31. http://bit.ly/29bsjbW

  32. STAGE 4

  33. DOCKER NETWORKING 101

  34. NETWORKS frontend backend interface logic charger filler Service for card

    charging Service with business logic Service for machine refill Vending machine
  35. COMMANDS

  36. DOCKER COMPOSE FILE

  37. READY TO ACCEPT PULL REQUEST

  38. http://bit.ly/29bskfQ

  39. None
  40. Q & A

  41. CREDITS Art: • Alexandr Pushai • Mark Oliver

  42. WHO TO FOLLOW • Docker (@docker) • Jérôme Petazzoni (@jpetazzo)

    • The New Stack (@thenewstack) • ThoughtWorks (@thoughtworks) • https://blog.docker.com/ • Youtube dockerrun