This presentation will introduce you to Cloud Foundry, an open source PaaS solution that can run on private clouds. It includes a brief overview of the history, architecture, and benefits of Cloud Foundry, as well as some practical advice on deployment, workflows, etc.
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Speeding up Development with Cloud Foundry
1. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
.
.
Speeding up development with CloudFoundry
Alexander Borovsky
Altoros
alexander.borovsky@altoros.com
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
2. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Overview
.
1
History
.
2
Why CloudFoundry matters?
The same tool to do all things
Speed ups deployment
Reduces cost
.
3
How to work with it?
Deployment
Application Scaling
Services
.
4
Development with PaaS Workflow
For Developers
For DevOps
For System Administrators
.
5
Cloud Foundry Architecture
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
3. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
.
1
History
.
2
Why CloudFoundry matters?
The same tool to do all things
Speed ups deployment
Reduces cost
.
3
How to work with it?
Deployment
Application Scaling
Services
.
4
Development with PaaS Workflow
For Developers
For DevOps
For System Administrators
.
5
Cloud Foundry Architecture
Cloud Foundry Architecture
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
4. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
History
Bare servers
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
5. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
History
Bare servers
Shared hosting
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
6. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
History
Bare servers
Shared hosting
2006 Hardware virtualization in cheap hardware
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
7. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
History
Bare servers
Shared hosting
2006 Hardware virtualization in cheap hardware
2008 Heroku
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
8. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
History
Bare servers
Shared hosting
2006 Hardware virtualization in cheap hardware
2008 Heroku
2011 CloudFoundry
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
9. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
.
1
History
.
2
Why CloudFoundry matters?
The same tool to do all things
Speed ups deployment
Reduces cost
.
3
How to work with it?
Deployment
Application Scaling
Services
.
4
Development with PaaS Workflow
For Developers
For DevOps
For System Administrators
.
5
Cloud Foundry Architecture
Cloud Foundry Architecture
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
10. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Publish application
.
Ruby
.
$ cf push
.
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
12. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Publish application
.
Ruby
.
$ cf push
.
.
Java
.
$ cf push
.
.
Other type
.
$ cf push
.
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
13. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Speed ups deployment
Creating new environment is easy
No deployment scripts required
All developers can have they own production-like environment
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
14. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Reduces cost
Easier infrastructure creation
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
15. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Reduces cost
Easier infrastructure creation
Automated cluster monitoring
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
16. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Reduces cost
Easier infrastructure creation
Automated cluster monitoring
Less people required to support infrastructure
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
17. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
.
1
History
.
2
Why CloudFoundry matters?
The same tool to do all things
Speed ups deployment
Reduces cost
.
3
How to work with it?
Deployment
Application Scaling
Services
.
4
Development with PaaS Workflow
For Developers
For DevOps
For System Administrators
.
5
Cloud Foundry Architecture
Cloud Foundry Architecture
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
18. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Deployment
cf push
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
19. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Using buildpacks
.
Definition
.
Buildpack prepares application to run in CloudFoundry
.
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
20. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Using buildpacks
.
Definition
.
Buildpack prepares application to run in CloudFoundry
.
cf push --buildpack <git repo>
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
21. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Using buildpacks
.
Definition
.
Buildpack prepares application to run in CloudFoundry
.
cf push --buildpack <git repo>
.
Example
.
cf push --buildpack
https://github.com/heroku/heroku-buildpack-php
.
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
22. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Using subfolder for deploy
cf push --path <path>
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
23. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Application Scaling
cf scale
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
24. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Service
.
Definition
.
Service is persistence level in CloudFoundry
.
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
25. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Service
.
Definition
.
Service is persistence level in CloudFoundry
.
.
Service creation
.
c
. f create-service
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
26. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Service
.
Definition
.
Service is persistence level in CloudFoundry
.
.
Service creation
.
c
. f create-service
.
Service binding
.
c
. f bind-service
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
27. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Development with PaaS Workflow
.
1
History
.
2
Why CloudFoundry matters?
The same tool to do all things
Speed ups deployment
Reduces cost
.
3
How to work with it?
Deployment
Application Scaling
Services
.
4
Development with PaaS Workflow
For Developers
For DevOps
For System Administrators
.
5
Cloud Foundry Architecture
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
28. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Changes for Developer
. Each developer have production-like environment
1
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
29. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Changes for Developer
. Each developer have production-like environment
.
2 Require small changes in application architecture
1
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
30. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Changes for Developer
. Each developer have production-like environment
.
2 Require small changes in application architecture
1
.
Details
.
No local storage
.
Share-nothing nodes
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
31. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Changes for DevOps
. Easy creation of environments
1
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
32. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Changes for DevOps
. Easy creation of environments
.
2 Easy scaling
1
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
33. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Changes for DevOps
. Easy creation of environments
.
2 Easy scaling
.
3 Easy environment duplication
1
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
34. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Changes for System Administrators
. Control used resources
1
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
35. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Changes for System Administrators
. Control used resources
.
2 Faster notification and recover after disasters
1
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
36. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Changes for System Administrators
. Control used resources
.
2 Faster notification and recover after disasters
.
3 Better hardware usage
1
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
37. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Cloud Foundry Architecture
.
1
History
.
2
Why CloudFoundry matters?
The same tool to do all things
Speed ups deployment
Reduces cost
.
3
How to work with it?
Deployment
Application Scaling
Services
.
4
Development with PaaS Workflow
For Developers
For DevOps
For System Administrators
.
5
Cloud Foundry Architecture
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
38. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Cloud Foundry Architecture
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..
39. History
Why CloudFoundry matters?
...
How to work with it?
.....
Development with PaaS Workflow
...
Cloud Foundry Architecture
Questions?
.
.. ..
. . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. ..
.
..
.
. . .
.. .. ..