Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Destination Cloud: Deploying Applications With Docker

Dad87927739931f134c5b1242e3d04bc?s=47 James Thomas
March 03, 2016
170

Destination Cloud: Deploying Applications With Docker

Deploying your application to the production has failed again. Emailing the developer who commited the last code changes, they send back the classic response... “It works on my machine”.

*sigh*

Is this scenario a recurring nightmare (and reality) for you? While everyone else is talking about “continuous delivery” do your deployments feel more like an extreme game of Jenga, tittering on the brink of disaster and a nightmare to reconstruct?

It doesn’t have to be like this. Launched only two years ago, Docker has revolutionised application deployment. Using this open-source project, applications are packaged into lightweight containers, that are hardware and platform agnostic. Containers move from the local developer machine to a production server and then the cloud without modification!

So, how do you migrate a traditional three-tier Java web application to use Docker?

Let’s use a sample web application, designed for hosting on a single server, convert it to use Docker and deploy to a cloud platform. We’ll break out the application and component services into individual containers that can be ran and scaled independently. Showing you how to utilise existing pre-built images for rapid development, build custom container images for your application and move seamlessly between deployment platforms, enabling us to use “cloud” to accelerate application development. We will configure automatic build, test and deploy pipelines for continuous deployment and auto-scaling to handle unpredictable application traffic with ease.

If you’re an application developer who’s exhausted from battling deployment issues, maintaining ”special” production servers and lives in fear of being on ”pager duty”, come and learn how you can use Docker to banish “works on my machine” syndrome. This talk is for developers who’ve heard about this “Docker thing” and want to see a practical example of converting a traditional monolithic web application to use Docker containers deployed to a scalable cloud platform.

Dad87927739931f134c5b1242e3d04bc?s=128

James Thomas

March 03, 2016
Tweet

Transcript

  1. IBM BluemixTM www.bluemix.net James Thomas - @thomasj - 03.04.16 DESTINATION

    CLOUD DEPLOYING APPLICATIONS TO THE CLOUD WITH DOCKER
  2. IBM BluemixTM www.bluemix.net DEPLOYMENT CYCLES ARE GETTING FASTER

  3. IBM BluemixTM www.bluemix.net CONTINUOUS DELIVERY IS AWE- SOME

  4. IBM BluemixTM www.bluemix.net DEVELOPMENT TESTING STAGING PRODUCTION CLOUD

  5. IBM BluemixTM www.bluemix.net “…it works for me.”

  6. IBM BluemixTM www.bluemix.net

  7. Virtual Machines Containers

  8. OPEN SOURCE

  9. OPEN SOURCE RUNS ON LINUX

  10. OPEN SOURCE RUNS ON LINUX LIGHT WEIGHT

  11. OPEN SOURCE RUNS ON LINUX LIGHT WEIGHT WRITE ONCE RUN

    EVERYWHERE
  12. OPEN SOURCE RUNS ON LINUX LIGHT WEIGHT WRITE ONCE RUN

    EVERYWHERE VERSIONING
  13. OPEN SOURCE RUNS ON LINUX LIGHT WEIGHT WRITE ONCE RUN

    EVERYWHERE VERSIONING DOCKER HUB
  14. OPEN SOURCE RUNS ON LINUX LIGHT WEIGHT WRITE ONCE RUN

    EVERYWHERE VERSIONING DOCKER HUB REGISTRIES
  15. +

  16. +

  17. +

  18. PRIVATE REGISTRY GUI or CLI CLOUD SERVICES DEPLOYMENT PIPELINE MACHINE

    SIZES CONTAINER GROUPS MONITORING VULNERABILITY SCANNING
  19. IBM BluemixTM www.bluemix.net DEMO TIME

  20. IBM BluemixTM www.bluemix.net github.com/IBM-Bluemix/bluechatter

  21. IBM BluemixTM www.bluemix.net NODE BOOTSTRAP + JQUERY REDIS BOOTSTRAP +

    JQUERY BOOTSTRAP + JQUERY
  22. IBM BluemixTM www.bluemix.net NODE BOOTSTRAP + JQUERY REDIS BOOTSTRAP +

    JQUERY BOOTSTRAP + JQUERY NODE NODE
  23. IBM BluemixTM www.bluemix.net RUNNING LOCALLY

  24. IBM BluemixTM www.bluemix.net WITHOUT DOCKER

  25. IBM BluemixTM www.bluemix.net WITH DOCKER

  26. IBM BluemixTM www.bluemix.net DOCKER COMPOSE

  27. IBM BluemixTM www.bluemix.net SOLVED: INCONSISTENT ENVIRONMENTS

  28. IBM BluemixTM www.bluemix.net TO THE CLOUD

  29. IBM BluemixTM www.bluemix.net STEPS: 1. BUILD + PUSH IMAGE TO

    REGISTRY 2. CREATE REDIS SERVICE + BIND CREDENTIALS 3. START CONTAINER FROM IMAGE
  30. IBM BluemixTM www.bluemix.net LET’S RECAP

  31. IBM BluemixTM www.bluemix.net YOUR APP

  32. IBM BluemixTM www.bluemix.net YOUR APP DOCKER

  33. IBM BluemixTM www.bluemix.net YOUR APP DOCKER YOUR APP DOCKER YOUR

    APP DOCKER IBM BLUEMIX
  34. IBM BluemixTM www.bluemix.net “…it works for me.”

  35. IBM BluemixTM www.bluemix.net “…it works everywhere.”

  36. IBM BluemixTM www.bluemix.net QUESTIONS James Thomas - @thomasj - 03.04.16