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

Creating a Heroku-like deployment solution with Docker

Creating a Heroku-like deployment solution with Docker

As developers, it is part of our job to build tools to make our life easier, usually through automation of every kind of action. My first option when hosting an application is Heroku, but there are sometimes when this is not an option. Since I love that kind of easiness for deploying software, I built my own deploy tool, that works much like Heroku’s.

This presentation covers the creation of an automation tool for deploying your software in a simple way, similar to deploying to Heroku. I’ll explain how to use Docker to version control each deploy, how to use a Docker Registry to upload containers. After that, I’ll show to wrap everything in simple Ruby CLI script, capable of deploying a sample application to a remote host, and some other extra commands for rolling back to previous versions, attaching logs and tracking which application version is running.

Pedro Cavalheiro

October 24, 2017

More Decks by Pedro Cavalheiro

Other Decks in Technology


  1. View Slide

  2. View Slide

  3. View Slide

  4. View Slide

  5. View Slide

  6. View Slide

  7. View Slide

  8. View Slide

  9. View Slide

  10. View Slide

  11. View Slide

  12. View Slide

  13. View Slide

  14. View Slide

  15. View Slide

  16. View Slide

  17. View Slide

  18. View Slide

  19. View Slide

  20. View Slide

  21. View Slide

  22. View Slide

  23. View Slide

  24. View Slide

  25. View Slide

  26. View Slide

  27. View Slide