Upload
jorge-morales
View
215
Download
0
Embed Size (px)
Citation preview
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
Based on a True Story
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.
http://mugs.mugbug.co.uk/
https://tstoaddicts.files.wordpress.com
https://blog.travis-ci.com
docker run -it jboss/wildfly
Where’s my app?
● Build my app locally● Create a docker image that extends
jboss/wildfly and includes my app● Start my new image (exporting ports)
Where’s my data?
1. Select an image2. Learn how to use it3. Try it4. See if it works for you, or got back to 1
myapp-on-wildfly mydbschema-on-postgres
myapp-on-wildfly mydbschema-on-postgres
?
● Environment variables● Docker links
Read more!!!
Finish for the day!!!
Stop
Goto sleep
Start of a new day!!!
Start
Where the f*** is my data???
● Docker volumes
Read more!!!
Finally working!!!
myapp-on-wildfly mydbschema-on-postgres
myapp-on-wildfly mydbschema-on-postgres?
https://www.insight.com
https://learnenglishbehappy.files.wordpress.com
https://tstoaddicts.files.wordpress.com
PaaS
The freaking awesome
online PaaS
https://img1.etsystatic.com
Use to interact with the PaaS:
● PaaS UI● PaaS CLI● PaaS API
cli deploy jorgemorales/app --name=frontend
cli deploy http://github.com/jorgemoralespou/app.git
--build=maven --run=wildfly --name=frontend
cli deploy http://github.com/jorgemoralespou/app.git/db.sql
--run=postgresql-persistent --name=database --size=5GB --type=NFS
cli link frontend database
cli scale frontend --replicas=5
Code changes needed!!!
cli deploy http://github.com/jorgemoralespou/app.git
--build=maven --run=wildfly --name=frontend
I fu*** it up!!!
cli rollback frontend
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...
Now my app is in production.
http://api.ning.com/
If you want to get more information:
@UnPOUcoDe
Or find me at the booth
http://www.openshift.orghttp://www.openshift.com