the runtime is up to you
DESCRIPTION
With Cloud Foundry you can choose your favorite runtime, language, and frameworks to use to build your apps in the cloud.TRANSCRIPT
![Page 1: The Runtime Is Up To you](https://reader034.vdocuments.mx/reader034/viewer/2022042813/54bf0bdb4a7959b8618b4584/html5/thumbnails/1.jpg)
The Runtime Is Up To YOU!
Ryan Baxter - IBM
@ryanjbaxter
http://ryanjbaxter.com
![Page 2: The Runtime Is Up To you](https://reader034.vdocuments.mx/reader034/viewer/2022042813/54bf0bdb4a7959b8618b4584/html5/thumbnails/2.jpg)
What is your favorite language and/or runtime?
![Page 3: The Runtime Is Up To you](https://reader034.vdocuments.mx/reader034/viewer/2022042813/54bf0bdb4a7959b8618b4584/html5/thumbnails/3.jpg)
UGH! I need to use
________?!?
![Page 4: The Runtime Is Up To you](https://reader034.vdocuments.mx/reader034/viewer/2022042813/54bf0bdb4a7959b8618b4584/html5/thumbnails/4.jpg)
With Cloud Foundry The Runtime Is Up To
You!
![Page 5: The Runtime Is Up To you](https://reader034.vdocuments.mx/reader034/viewer/2022042813/54bf0bdb4a7959b8618b4584/html5/thumbnails/5.jpg)
Buildpacks
• Buildpacks allow you to deploy the runtime, containers, and frameworks you want to use to run your apps on Cloud Foundry
• The build pack concept was adopted from Heroku– In fact many Heroku buildpacks will also work on Cloud
Foundry
![Page 6: The Runtime Is Up To you](https://reader034.vdocuments.mx/reader034/viewer/2022042813/54bf0bdb4a7959b8618b4584/html5/thumbnails/6.jpg)
Built-In Buildpacks
![Page 7: The Runtime Is Up To you](https://reader034.vdocuments.mx/reader034/viewer/2022042813/54bf0bdb4a7959b8618b4584/html5/thumbnails/7.jpg)
Community Buildpacks
• These are build packs that are supported by the community in order to use other frameworks and runtimes
• Community buildpacks are just Git repos– Generally hosted publicly on GitHub
• Community Buildpacks: http://bit.ly/cfbuilsps
![Page 8: The Runtime Is Up To you](https://reader034.vdocuments.mx/reader034/viewer/2022042813/54bf0bdb4a7959b8618b4584/html5/thumbnails/8.jpg)
Buildpack Anatomy
Runtime
Container Libraries
Application
Buildpack
![Page 9: The Runtime Is Up To you](https://reader034.vdocuments.mx/reader034/viewer/2022042813/54bf0bdb4a7959b8618b4584/html5/thumbnails/9.jpg)
Specify A Buildpack
• When not using a build-in build pack you need to tell Cloud Foundry what buildpack you would like to use
• Command Line– cf push myapp -b https://github.com/ryanjbaxter/my-bp
• Manifest.yml file– buildpack: https://github.com/ryanjbaxter/my-bp
![Page 10: The Runtime Is Up To you](https://reader034.vdocuments.mx/reader034/viewer/2022042813/54bf0bdb4a7959b8618b4584/html5/thumbnails/10.jpg)
Configuring and Extending Buildpacks
• Sometimes it is necessary to configure a build pack– Use a different container, ie Apache vs NGINX– Configure the container– Enable logging– Enable additional features
• Extensions may also be useful but they usually involve forking the buildpack– One common case for an extension is integrating monitoring
software, ie New Relic
![Page 11: The Runtime Is Up To you](https://reader034.vdocuments.mx/reader034/viewer/2022042813/54bf0bdb4a7959b8618b4584/html5/thumbnails/11.jpg)
Demo
• Everyones favorite beginner app…..the ToDo App• Front-end from todomvc.com
– Using Backbone (nice REST API!!!!)• Backend implemented in multiple languages• All running on the same Cloud Foundry instance!