Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

I tried to dockerize my app but I had to PaaS

420 Aufrufe

Veröffentlicht am

In this talk I describe how I tried to run my application in Docker containers in production and how difficult and painful the process was, and why a PaaS platform helped me with many things I haven’t thought of before.

Veröffentlicht in: Technologie
  • Als Erste(r) kommentieren

I tried to dockerize my app but I had to PaaS

  1. 1. I tried to Dockerize my app but I had to PaaS “The incredible case of the man who knew nothing” Jorge Morales, @UnPOUcoDe, github.com/jorgemoralespou
  2. 2. Based on a True Story
  3. 3. DISCLAIMER!!! Everything you’re going to hear from now on is based on my experience as: “The incredible case of the man who knew nothing” While I did things my way, there might be easier ways but Google didn’t showed them to me.
  4. 4. http://mugs.mugbug.co.uk/
  5. 5. https://tstoaddicts.files.wordpress.com
  6. 6. https://blog.travis-ci.com
  7. 7. docker run -it jboss/wildfly
  8. 8. Where’s my app?
  9. 9. ● Build my app locally ● Create a docker image that extends jboss/wildfly and includes my app ● Start my new image (exporting ports)
  10. 10. Where’s my data?
  11. 11. 1. Select an image 2. Learn how to use it 3. Try it 4. See if it works for you, or got back to 1
  12. 12. myapp-on-wildfly mydbschema-on-postgres
  13. 13. myapp-on-wildfly mydbschema-on-postgres ?
  14. 14. ● Environment variables ● Docker links Read more!!!
  15. 15. Finish for the day!!! Stop Goto sleep
  16. 16. Start of a new day!!! Start Where the f*** is my data???
  17. 17. ● Docker volumes Read more!!!
  18. 18. Finally working!!!
  19. 19. myapp-on-wildfly mydbschema-on-postgres
  20. 20. myapp-on-wildfly mydbschema-on-postgres ? https://www.insight.com
  21. 21. https://learnenglishbehappy.files.wordpress.com
  22. 22. https://tstoaddicts.files.wordpress.com
  23. 23. PaaS
  24. 24. The freaking awesome online PaaS
  25. 25. https://img1.etsystatic.com
  26. 26. Use to interact with the PaaS: ● PaaS UI ● PaaS CLI ● PaaS API
  27. 27. cli deploy jorgemorales/app --name=frontend
  28. 28. cli deploy http://github.com/jorgemoralespou/app.git --build=maven --run=wildfly --name=frontend
  29. 29. cli deploy http://github.com/jorgemoralespou/app.git/db.sql --run=postgresql-persistent --name=database --size=5GB --type=NFS
  30. 30. cli link frontend database
  31. 31. cli scale frontend --replicas=5
  32. 32. Code changes needed!!!
  33. 33. cli deploy http://github.com/jorgemoralespou/app.git --build=maven --run=wildfly --name=frontend
  34. 34. I fu*** it up!!!
  35. 35. cli rollback frontend
  36. 36. Also... ● Big catalog of images to use (Docker) ● Automatic builds based on code changes ● Application Hooks. pre-deploy, post-deploy, mid-deploy, custom. ● Application probes. Know when your application is live and/or ready. ● CI/CD, Pipelines ● Blue/Green deployments ● AB Testing ● And many, many more...
  37. 37. Now my app is in production.
  38. 38. http://api.ning.com/
  39. 39. If you want to get more information: @UnPOUcoDe Or find me at the booth http://www.openshift.org http://www.openshift.com

×