+ All Categories
Home > Technology > I tried to dockerize my app but I had to PaaS

I tried to dockerize my app but I had to PaaS

Date post: 13-Apr-2017
Category:
Upload: jorge-morales
View: 214 times
Download: 0 times
Share this document with a friend
48
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
Transcript
Page 1: I tried to dockerize my app but I had to PaaS

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

Page 2: I tried to dockerize my app but I had to PaaS

Based on a True Story

Page 3: I tried to dockerize my app but I had to PaaS

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.

Page 4: I tried to dockerize my app but I had to PaaS
Page 5: I tried to dockerize my app but I had to PaaS

http://mugs.mugbug.co.uk/

Page 6: I tried to dockerize my app but I had to PaaS
Page 7: I tried to dockerize my app but I had to PaaS

https://tstoaddicts.files.wordpress.com

Page 8: I tried to dockerize my app but I had to PaaS

https://blog.travis-ci.com

Page 9: I tried to dockerize my app but I had to PaaS
Page 10: I tried to dockerize my app but I had to PaaS
Page 11: I tried to dockerize my app but I had to PaaS
Page 12: I tried to dockerize my app but I had to PaaS

docker run -it jboss/wildfly

Page 13: I tried to dockerize my app but I had to PaaS
Page 14: I tried to dockerize my app but I had to PaaS

Where’s my app?

Page 15: I tried to dockerize my app but I had to PaaS
Page 16: I tried to dockerize my app but I had to PaaS

● Build my app locally● Create a docker image that extends

jboss/wildfly and includes my app● Start my new image (exporting ports)

Page 17: I tried to dockerize my app but I had to PaaS

Where’s my data?

Page 18: I tried to dockerize my app but I had to PaaS
Page 19: I tried to dockerize my app but I had to PaaS

1. Select an image2. Learn how to use it3. Try it4. See if it works for you, or got back to 1

Page 20: I tried to dockerize my app but I had to PaaS

myapp-on-wildfly mydbschema-on-postgres

Page 21: I tried to dockerize my app but I had to PaaS

myapp-on-wildfly mydbschema-on-postgres

?

Page 22: I tried to dockerize my app but I had to PaaS

● Environment variables● Docker links

Read more!!!

Page 23: I tried to dockerize my app but I had to PaaS

Finish for the day!!!

Stop

Goto sleep

Page 24: I tried to dockerize my app but I had to PaaS

Start of a new day!!!

Start

Where the f*** is my data???

Page 25: I tried to dockerize my app but I had to PaaS

● Docker volumes

Read more!!!

Page 26: I tried to dockerize my app but I had to PaaS

Finally working!!!

Page 27: I tried to dockerize my app but I had to PaaS

myapp-on-wildfly mydbschema-on-postgres

Page 28: I tried to dockerize my app but I had to PaaS

myapp-on-wildfly mydbschema-on-postgres?

https://www.insight.com

Page 29: I tried to dockerize my app but I had to PaaS

https://learnenglishbehappy.files.wordpress.com

Page 30: I tried to dockerize my app but I had to PaaS

https://tstoaddicts.files.wordpress.com

Page 31: I tried to dockerize my app but I had to PaaS

PaaS

Page 32: I tried to dockerize my app but I had to PaaS
Page 33: I tried to dockerize my app but I had to PaaS

The freaking awesome

online PaaS

Page 34: I tried to dockerize my app but I had to PaaS

https://img1.etsystatic.com

Page 35: I tried to dockerize my app but I had to PaaS

Use to interact with the PaaS:

● PaaS UI● PaaS CLI● PaaS API

Page 36: I tried to dockerize my app but I had to PaaS

cli deploy jorgemorales/app --name=frontend

Page 37: I tried to dockerize my app but I had to PaaS

cli deploy http://github.com/jorgemoralespou/app.git

--build=maven --run=wildfly --name=frontend

Page 38: I tried to dockerize my app but I had to PaaS

cli deploy http://github.com/jorgemoralespou/app.git/db.sql

--run=postgresql-persistent --name=database --size=5GB --type=NFS

Page 39: I tried to dockerize my app but I had to PaaS

cli link frontend database

Page 40: I tried to dockerize my app but I had to PaaS

cli scale frontend --replicas=5

Page 41: I tried to dockerize my app but I had to PaaS

Code changes needed!!!

Page 42: I tried to dockerize my app but I had to PaaS

cli deploy http://github.com/jorgemoralespou/app.git

--build=maven --run=wildfly --name=frontend

Page 43: I tried to dockerize my app but I had to PaaS

I fu*** it up!!!

Page 44: I tried to dockerize my app but I had to PaaS

cli rollback frontend

Page 45: I tried to dockerize my app but I had to PaaS

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...

Page 46: I tried to dockerize my app but I had to PaaS

Now my app is in production.

Page 47: I tried to dockerize my app but I had to PaaS

http://api.ning.com/

Page 48: I tried to dockerize my app but I had to PaaS

If you want to get more information:

@UnPOUcoDe

Or find me at the booth

http://www.openshift.orghttp://www.openshift.com


Recommended