Ship java apps with docker!

download Ship java apps with docker!

of 32

  • date post

  • Category


  • view

  • download


Embed Size (px)

Transcript of Ship java apps with docker!

  1. 1. Ship Java Apps with Docker!
  2. 2. Raise your hands if you have... Tried Docker (online tutorial) Tried real Docker (e.g. deployed on remote VM) Installed Docker locally (e.g. with boot2docker) Written a Dockerfile (and built it!) An image on Docker hub (pushed or autobuilt) Deployed Docker images for dev/QA/test/prod etc.
  3. 3. About: Rasheed Full Stack Developer & Co-Founder @ Aurora Solutions - Provides REMOTE Teams specializing in JVM languages and Angular + Ember My team at Aurora specializes in: Web/Backend Apps Java, Groovy, Grails, C# and AngularJS/EmberJS based single or multi page web apps Mobile Apps Android & iOS Business domains we specialize in: Media Streaming Automated/Algorithmic Trading Bitcoin / Crypto Currency LinkedIn: Email:
  4. 4. Agenda Background Container vs VM Define Sample App Build/Run Docker Images Docker Index Deploy Locally Deploy AWS Deploy GCE
  5. 5. Background
  6. 6.
  7. 7.
  8. 8.
  9. 9. A useful analogy...
  10. 10.
  11. 11.
  12. 12.
  13. 13.
  14. 14.
  15. 15.
  16. 16. Say again? Build: package your application in a container Ship: move that container from a machine to another Run: execute that container Any application: anything that runs on Linux Anywhere: local VM, cloud instance, bare metal
  17. 17. Container vs. VM
  18. 18.
  19. 19.
  20. 20. Basic Docker Concepts
  21. 21. Main Docker Parts docker daemon used to manage docker (LXC) containers on the host it runs docker CLI used to command and communicate with the docker daemon docker image index a repository (public or private) for docker images
  22. 22. Main Docker Elements Dockerfiles scripts automating the building process of images docker images snapshots of containers or base OS (e.g. Ubuntu) images docker containers directories containing everything-your-application
  23. 23. Install Docker (Ubuntu 14.04) Step 1: add docker repository key to apt-key for package verification sudo sh -c "wget -qO- | apt-key add -" Step 2: add the docker repository to your list of repositories: sudo sh -c "echo deb docker main > /etc/apt/sources.list.d/docker.list" Step 3: finally install docker with an apt-get combo: sudo apt-get update sudo apt-get install lxc-docker
  24. 24. Sample java app!
  25. 25. Deploy Locally!
  26. 26. Docker Index
  27. 27. Docker Index Its GitHub for Docker images! You can pull activemq, mysql, mongodb, hadoop, etc. You can hook your docker index repository on to your own repository on GitHub!!! Build images automatically once you push something to Github
  28. 28. Deploy on EC2!
  29. 29. Deploy on GCE!
  30. 30. Docker Linking
  31. 31.
  32. 32. Thank you! Questions...