Pivotal Cloud Platform Deep Dive 
Part 3: Enabling Continuous Delivery 
Pivotal CF Team 
© Copyright 20134 Pivotal. All ri...
Before we get started… 
© Copyright 2014 Pivotal. All rights reserved. 
2
Setup Prerequisites 
• CloudBees Account (Jenkins) 
http://grandcentral.cloudbees.com 
• JFrog Artifactory Online Account ...
© Copyright 2014 Pivotal. All rights reserved. 
CloudBees 
4
© Copyright 2014 Pivotal. All rights reserved. 5
© Copyright 2014 Pivotal. All rights reserved. 6
© Copyright 2014 Pivotal. All rights reserved. 7
© Copyright 2014 Pivotal. All rights reserved. 8
© Copyright 2014 Pivotal. All rights reserved. 9
© Copyright 2014 Pivotal. All rights reserved. 10
© Copyright 2014 Pivotal. All rights reserved. 
Artifactory Online 
11
© Copyright 2014 Pivotal. All rights reserved. 12
© Copyright 2014 Pivotal. All rights reserved. 13
© Copyright 2014 Pivotal. All rights reserved. 14
© Copyright 2014 Pivotal. All rights reserved. 15
© Copyright 2014 Pivotal. All rights reserved. 16
© Copyright 2014 Pivotal. All rights reserved. 17
© Copyright 2014 Pivotal. All rights reserved. 18
Enabling Continuous Delivery 
• Setup Prerequisites 
• Continuous Delivery Overview 
• How Cloud Foundry Enables Continuou...
Meet Henry 
(Our Business Owner) 
20 
!
Meet Henry 
! 
He needs an app built in the next 8 weeks 
He knows what the app should do 
He expects competitors to try t...
Meet Jane 
(Our App Architect) 
22 
!
Meet Jane 
Jane is a little worried: 
! 
Not everyone understands agile here 
Environment setup takes a long time 
8 Weeks...
Continuous Delivery To The Rescue! 
24
Continuous Deployment 
25 
Github: On August 23, 2012 – 563 builds and 175 deploys 
github.com/blog/1241-deploying-at-gith...
Continuous Delivery != Continuous Deployment 
26 
!
Continuous Delivery != Continuous Deployment 
27 twitter.com/ccaum/statuses/372620989257232384
The Difference: 
! 
Who Presses The Button 
For A Production Deployment? 
28
What Could Get In Jane’s Way? 
29
Cycle Time 
How Long Does It Take To Deploy 
One Line Of Code To Production? 
30 www.flickr.com/photos/nnova/3399904953
Silos 
… But We Have A DevOps Team! 
31 www.flickr.com/photos/denimdave/6334224428
Process 
You Need To Open A Ticket For That! 
32 www.flickr.com/photos/kevgilmour/4843051331
Feedback Loop 
Are We Building The Right Thing? 
33 www.flickr.com/photos/tenspeedphotography/5450456783
34 
Change 
Production Breaks When Changes Are Made (!) 
… Right?
Jane Needs Some Help 
(This Seems Insurmountable) 
35
Strategies For Success 
36
Strategies For Success 
Do Implement Continuous Integration 
37 
!
Strategies For Success 
Do Not Create Environment Specific Packages 
38 
! ! ! ! !
Strategies For Success 
Do Externalize Environment Specific 
Configuration 
! ! ! | ! ! ! 
39
Strategies For Success 
Do Automate Everything 
40 
!
Strategies For Success 
Do Not Assume Existing Processes Are Right 
(Engage In Continuous Improvement) 
41 
!
Strategies For Success 
Do Not Use A Different Process For Different 
Environments 
42 
! ! ! ! !
Strategies For Success 
Do Recreate App Environments Frequently 
(Also Known As: Servers Are Not Puppies) 
43 
!
Strategies For Success 
Do Ensure Database Changes Are Automated 
44 
! ! ! ! !
Strategies For Success 
Do Deploy Less More Frequently 
! 
45 
! ! ! ! ! ! 
! ! ! ! ! ! 
! ! ! ! ! ! ! 
v2.1 
v2.1 ! ! ! !...
Strategies For Success 
Do Automate All Testing Where Test Failures 
Would Prevent A Production Release From 
Occurring 
!...
Strategies For Success 
Do Try To Use Tools That Support The Process 
(But Don’t Get Stuck In Tool Selection Hell!) 
47 
g...
Enabling Continuous Delivery 
• Setup Prerequisites 
• Continuous Delivery Overview 
• How Cloud Foundry Enables Continuou...
Cloud Foundry Helps Jane… 
49
Cloud Foundry Helps Jane… 
Get A New App Environment In Seconds 
50 
! in a !
Cloud Foundry Helps Jane… 
Have Complete Consistency Between 
Environments 
51 
! ! ! ! !
Cloud Foundry Helps Jane… 
Have A Consistent API To Automate 
Deployments 
52 
! ! ! ! !
Cloud Foundry Helps Jane… 
Inject Environment Specific Configuration 
53 
! ! !
Cloud Foundry Helps Jane… 
Inject External Dependencies 
54 
! ! !
55 
Cloud Foundry Helps Jane… 
Promote Apps Through Environments With 
The Same Process 
! 
!! 
! ! 
! 
! 
!
Cloud Foundry Helps Jane… 
By Providing New Options: 
+ Canary Deployment 
+ Zero Downtime Deployment 
+ A/B Testing 
+ Sc...
App Developers Can Be More 
Successful When They Are Supported 
By Agile Infrastructure 
57 
!
Enabling Continuous Delivery 
• Setup Prerequisites 
• Continuous Delivery Overview 
• How Cloud Foundry Enables Continuou...
Lab 
• Follow the instructions found at https://github.com/cf-platform- 
eng/cf-workshop-cd-module using your: 
• Pivotal ...
Enabling Continuous Delivery 
• Setup Prerequisites 
• Continuous Delivery Overview 
• How Cloud Foundry Enables Continuou...
Coming Up 
• Break (4:00 - 4:15) 
• Part Four (4:15 - 5:30) 
• Learn CF Extension Points 
• Customize a Buildpack -OR- 
•W...
A NEW PLATFORM FOR A NEW ERA
Upcoming SlideShare
Loading in...5
×

Part 3: Enabling Continuous Delivery (Pivotal Cloud Platform Roadshow)

1,694

Published on

Enabling Continuous Delivery

The primary goals of this session are to:

Give a brief, platform-agnostic overview of the “why” and “what” of Continuous Delivery. The purpose is to simply educate the student and bring everyone to the same level.
Explain how Cloud Foundry benefits Continuous Delivery.

Provide a hands-on lab experience where the student takes a Spring Boot microservice application and builds a continuous delivery pipeline for it using Jenkins, Artifactory, and Cloud Foundry. This is all done using free trial SaaS versions of the software.

Pivotal Cloud Platform Roadshow is coming to a city near you!
Join Pivotal technologists and learn how to build and deploy great software on a modern cloud platform. Find your city and register now http://bit.ly/1poA6PG

Published in: Software
0 Comments
8 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,694
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
231
Comments
0
Likes
8
Embeds 0
No embeds

No notes for slide

Transcript of "Part 3: Enabling Continuous Delivery (Pivotal Cloud Platform Roadshow)"

  1. 1. Pivotal Cloud Platform Deep Dive Part 3: Enabling Continuous Delivery Pivotal CF Team © Copyright 20134 Pivotal. All rights reserved. 1
  2. 2. Before we get started… © Copyright 2014 Pivotal. All rights reserved. 2
  3. 3. Setup Prerequisites • CloudBees Account (Jenkins) http://grandcentral.cloudbees.com • JFrog Artifactory Online Account https://www.jfrog.com/registration/registration.html © Copyright 2014 Pivotal. All rights reserved. 3
  4. 4. © Copyright 2014 Pivotal. All rights reserved. CloudBees 4
  5. 5. © Copyright 2014 Pivotal. All rights reserved. 5
  6. 6. © Copyright 2014 Pivotal. All rights reserved. 6
  7. 7. © Copyright 2014 Pivotal. All rights reserved. 7
  8. 8. © Copyright 2014 Pivotal. All rights reserved. 8
  9. 9. © Copyright 2014 Pivotal. All rights reserved. 9
  10. 10. © Copyright 2014 Pivotal. All rights reserved. 10
  11. 11. © Copyright 2014 Pivotal. All rights reserved. Artifactory Online 11
  12. 12. © Copyright 2014 Pivotal. All rights reserved. 12
  13. 13. © Copyright 2014 Pivotal. All rights reserved. 13
  14. 14. © Copyright 2014 Pivotal. All rights reserved. 14
  15. 15. © Copyright 2014 Pivotal. All rights reserved. 15
  16. 16. © Copyright 2014 Pivotal. All rights reserved. 16
  17. 17. © Copyright 2014 Pivotal. All rights reserved. 17
  18. 18. © Copyright 2014 Pivotal. All rights reserved. 18
  19. 19. Enabling Continuous Delivery • Setup Prerequisites • Continuous Delivery Overview • How Cloud Foundry Enables Continuous Delivery • Lab: Setup a CD Pipeline with Jenkins, Artifactory, CF Client, and PWS © Copyright 2014 Pivotal. All rights reserved. 19
  20. 20. Meet Henry (Our Business Owner) 20 !
  21. 21. Meet Henry ! He needs an app built in the next 8 weeks He knows what the app should do He expects competitors to try to beat us to market 21
  22. 22. Meet Jane (Our App Architect) 22 !
  23. 23. Meet Jane Jane is a little worried: ! Not everyone understands agile here Environment setup takes a long time 8 Weeks isn’t much time to get a release to production (!) 23
  24. 24. Continuous Delivery To The Rescue! 24
  25. 25. Continuous Deployment 25 Github: On August 23, 2012 – 563 builds and 175 deploys github.com/blog/1241-deploying-at-github
  26. 26. Continuous Delivery != Continuous Deployment 26 !
  27. 27. Continuous Delivery != Continuous Deployment 27 twitter.com/ccaum/statuses/372620989257232384
  28. 28. The Difference: ! Who Presses The Button For A Production Deployment? 28
  29. 29. What Could Get In Jane’s Way? 29
  30. 30. Cycle Time How Long Does It Take To Deploy One Line Of Code To Production? 30 www.flickr.com/photos/nnova/3399904953
  31. 31. Silos … But We Have A DevOps Team! 31 www.flickr.com/photos/denimdave/6334224428
  32. 32. Process You Need To Open A Ticket For That! 32 www.flickr.com/photos/kevgilmour/4843051331
  33. 33. Feedback Loop Are We Building The Right Thing? 33 www.flickr.com/photos/tenspeedphotography/5450456783
  34. 34. 34 Change Production Breaks When Changes Are Made (!) … Right?
  35. 35. Jane Needs Some Help (This Seems Insurmountable) 35
  36. 36. Strategies For Success 36
  37. 37. Strategies For Success Do Implement Continuous Integration 37 !
  38. 38. Strategies For Success Do Not Create Environment Specific Packages 38 ! ! ! ! !
  39. 39. Strategies For Success Do Externalize Environment Specific Configuration ! ! ! | ! ! ! 39
  40. 40. Strategies For Success Do Automate Everything 40 !
  41. 41. Strategies For Success Do Not Assume Existing Processes Are Right (Engage In Continuous Improvement) 41 !
  42. 42. Strategies For Success Do Not Use A Different Process For Different Environments 42 ! ! ! ! !
  43. 43. Strategies For Success Do Recreate App Environments Frequently (Also Known As: Servers Are Not Puppies) 43 !
  44. 44. Strategies For Success Do Ensure Database Changes Are Automated 44 ! ! ! ! !
  45. 45. Strategies For Success Do Deploy Less More Frequently ! 45 ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! v2.1 v2.1 ! ! ! ! v2.2 ! ! ! ! ! ! v2.3 ! ! !
  46. 46. Strategies For Success Do Automate All Testing Where Test Failures Would Prevent A Production Release From Occurring ! 46 ! ! ! | ! ! !
  47. 47. Strategies For Success Do Try To Use Tools That Support The Process (But Don’t Get Stuck In Tool Selection Hell!) 47 g ! !
  48. 48. Enabling Continuous Delivery • Setup Prerequisites • Continuous Delivery Overview • How Cloud Foundry Enables Continuous Delivery • Lab: Setup a CD Pipeline with Jenkins, Artifactory, CF Client, and PWS © Copyright 2014 Pivotal. All rights reserved. 48
  49. 49. Cloud Foundry Helps Jane… 49
  50. 50. Cloud Foundry Helps Jane… Get A New App Environment In Seconds 50 ! in a !
  51. 51. Cloud Foundry Helps Jane… Have Complete Consistency Between Environments 51 ! ! ! ! !
  52. 52. Cloud Foundry Helps Jane… Have A Consistent API To Automate Deployments 52 ! ! ! ! !
  53. 53. Cloud Foundry Helps Jane… Inject Environment Specific Configuration 53 ! ! !
  54. 54. Cloud Foundry Helps Jane… Inject External Dependencies 54 ! ! !
  55. 55. 55 Cloud Foundry Helps Jane… Promote Apps Through Environments With The Same Process ! !! ! ! ! ! !
  56. 56. Cloud Foundry Helps Jane… By Providing New Options: + Canary Deployment + Zero Downtime Deployment + A/B Testing + Scale Apps On-Demand 56
  57. 57. App Developers Can Be More Successful When They Are Supported By Agile Infrastructure 57 !
  58. 58. Enabling Continuous Delivery • Setup Prerequisites • Continuous Delivery Overview • How Cloud Foundry Enables Continuous Delivery • Lab: Setup a CD Pipeline with Jenkins, Artifactory, CF Client, and PWS © Copyright 2014 Pivotal. All rights reserved. 58
  59. 59. Lab • Follow the instructions found at https://github.com/cf-platform- eng/cf-workshop-cd-module using your: • Pivotal Web Services Account • CloudBees Account • Artifactory Online Account © Copyright 2014 Pivotal. All rights reserved. 59
  60. 60. Enabling Continuous Delivery • Setup Prerequisites • Continuous Delivery Overview • How Cloud Foundry Enables Continuous Delivery • Lab: Setup a CD Pipeline with Jenkins, Artifactory, CF Client, and PWS © Copyright 2014 Pivotal. All rights reserved. 60
  61. 61. Coming Up • Break (4:00 - 4:15) • Part Four (4:15 - 5:30) • Learn CF Extension Points • Customize a Buildpack -OR- •Write and Deploy a Service Broker © Copyright 2014 Pivotal. All rights reserved. 61
  62. 62. A NEW PLATFORM FOR A NEW ERA

×