Dockerization (#DEVFESTBY 25.11.2016)

Dockerization (#DEVFESTBY 25.11.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

November 25, 2016
Tweet

Transcript

  1. DOCKERIZATION Sergey Kibish / @s_kibish #DEVFESTBY

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

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

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

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

  8. STORY

  9. 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! :)
  10. TOP VIEW interface logic charger filler Service for card charging

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

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

  13. MILESTONES

  14. ISSUES

  15. dockerization/workshop-devfestby-2016 http://bit.ly/2ggKgVV

  16. STAGE 1

  17. DOCKERFILE 101

  18. EXECUTE EXECUTE DOCKERFILE BODY BODY HEAD HEAD

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

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

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

  22. http://bit.ly/2ggFVlN

  23. STAGE 2

  24. DOCKER COMPOSE 101

  25. DOCKER COMPOSE FILE

  26. READY TO ACCEPT PULL REQUESTS

  27. http://bit.ly/2fSdGg7

  28. STAGE 3

  29. DOCKER REGISTRY 101

  30. COMMANDS

  31. DOCKER COMPOSE FILE

  32. READY TO ACCEPT PULL REQUEST

  33. http://bit.ly/2fSkTwK

  34. STAGE 4

  35. DOCKER NETWORKING 101

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

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

  38. DOCKER COMPOSE FILE

  39. READY TO ACCEPT PULL REQUEST

  40. http://bit.ly/2fScTM4

  41. None
  42. Q & A

  43. CREDITS Art: • Alexandr Pushai • Mark Oliver

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

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