Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

CI/CD with Rancher CLI + Jenkins

1,678 views

Published on

CI/CD design example with Rancher CLI and Jenkins.

Published in: Software

CI/CD with Rancher CLI + Jenkins

  1. 1. CI/CD with Rancher CLI + Jenkins Rancher Meetup Tokyo #1 Go Chiba @go_chiba
  2. 2. About me  Go Chiba – Work System Integrator – Role Apache CloudStack PMC/Commiter – Contact Twitter: @go_chiba
  3. 3. CI/CD Dev Test Staging Production Dev Team QA Team Release Manager
  4. 4. Rancher CLI  CLI Tool to manage Rancher server and resources – Environment/Hosts/Stacks/Services/Containers https://github.com/rancher/cli # rancher hosts ID HOSTNAME STATE IP DETAIL 1h4 rancher-host01 active X.X.X.X 1h6 rancher-host02 active Y.Y.Y.Y
  5. 5. Jenkins Preparation Build Image A Build Image B Build Image C Deploy to Rancher Commit/PR Push/Merge Staging Production
  6. 6. Jenkins # git fetch # docker build -t XXX:$GIT_BRANCH . # rancher up -d Commit/PR Push/Merge Staging Production
  7. 7. Demo Design Production Staging Ubuntu Rancher OS Rancher OS Ubuntu http://vote.gochiba.net http://result.gochiba.net Ubuntu
  8. 8. Demo
  9. 9. Scenario 1 I Don’t like “Cats” or “Dogs” voting... OK, Change it and can you send me a PR?
  10. 10. Scenario 1 Issue Report Send PR Assign Developer Developer Owner
  11. 11. Scenario 2 Let’s check on Staging... ?
  12. 12. Scenario 2 Staging Stack up fetch build/ push rancher pull Check Owner
  13. 13. Scenario 3 Hi Cattle, your code has merged to master. Plz check our site. Thanks! I’ll be check your production :)
  14. 14. Scenario 3 Production Stack up Owner fetch build/ push rancher pull Check merge
  15. 15. TODO  Re-design Jenkins job units.  Validate YAML files on preparation.  Garbage Collect test images/stacks.
  16. 16. Thank you!

×