Cloud foundry demo

Post on 21-Jan-2018

101 views 1 download

Transcript of Cloud foundry demo

Cloud FoundryGet your hands

dirty

BUH!Ivan Borshukov

Works @SAP, Cloud Foundry enthusiast

You can find me at @botu6aa

Deploying your first Application

Let’s start from the beginning

Talk to Cloud Foundry

✨ CF Command line interface (CLI)✨ One CLI to rule them all

$ cf api api.bosh-lite.com

$ cf login

Talk to Cloud Foundry (cont)

Organizational Hierarchy

✨ Organizations - e.g. teams or customers

✨ Spaces - environment - e.g. dev, test, prod

✨ Applications

Organizational Hierarchy

✨ Organization✨ Space✨ Application A✨ Application Z

Setting our target

✨ Select organization and space

$ cf target -o acme -s rocket

Setting our target

✨ Multiple runtimes supported✨ Bring your own runtime (buildpack)✨ From static content to source code to single

executable

Deploy an application

$ cd app-directory

$ cf push my-app

Deploying an application

✨ Vertical or horizontal✨ In order of seconds✨ Cloud Foundry will look after your app

Scaling an application

$ cf scale my-app -i 3

Give me more instances

Services

✨ Database, cache, BLOB store, mail, ...✨ Provided by anyone✨ Easy to use - CF marketplace✨ Service plans

$ cf marketplace

$ cf create-service mysql

$ cf bind-service

“Binding” a service

Thank you!Any questions?

You can find me at @botu6aa, ivan.borshukov@gmail.com

Credits

Special thanks to all the people who made and released these awesome resources for free:

✨ Presentation template by SlidesCarnival✨ Photographs by Unsplash