0
Nise BOSH In ActionIwasaki Yudai @i_yudaiNTT Software Innovation Center2013-04-26
Installing cf-release jobs with Nise BOSH– What’s cf-release?– What’s Nise BOSH?– How to useDEA/NG and CCv1 compatibilit...
Installing cf-release jobs with Nise BOSH
 Preconfigured CF source code set– For installation with BOSH– Well-tested by many users– Portable• Minimum dependencies ...
Tool chain for distributed systems– Release engineering– Lifecycle management– Works with IaaS layers (CPI)• AWS, vSphere...
Photo by yeowatzup from http://www.flickr.com/photos/yeowatzup/173818958/Heavybut worth trying
A lightweight BOSH (nearly) emulator– Works on a local machine– Without any CPIWhat’s Nise BOSHhttps://github.com/nttlabs...
./bin/init– Stemcell-like environment builder./bin/nise-bosh– Package installer./bin/run-job– Job launcherMain Three Sc...
Sets up Stemcell-like environment– Installs apt packages, create users and so on...Ported from Stemcell Builder stages– ...
Installs packages and job templates– Automatically resolving dependencies– Running packaging scripts– Filling templates w...
Job launcher– Reads monitrc file from job templates• Resolving task dependencies– start/stop/status./bin/run-job
Entry on Cloud Foundry.com– http://blog.cloudfoundry.com/2013/04/15/ntt-contributes-nise-bosh-a-tool-to-speed-up-bosh-dev...
Ubuntu 10.04 64bit– Recommended for cf-releaseExample: Installing dea_next (1)sudo apt-get install git-core# Clone Nise B...
Generating package archives– `bosh craete release` creates pre-packaged tar files in .dev_buildsExample: Installing dea_n...
Deployment manifest– Compatible with BOSHExample: Install dea_next (3)vi ~/deploy.conf---properties:domain: vcap.menetwor...
Installing dea_next job templateExample: Installing dea_next (4)cd ~/nise_boshsudo env PATH=$PATH bundle installsudo env ...
Launching processesExample: Installing dea_next (5)sudo env PATH=$PATH bundle exec ./bin/run-job start
./bin/nise-bosh has some options– See README.md
DEA/NG and CCv1 compatibility
2013-04-26Photo from http://pdphoto.org/PictureDetail.php?mat=pdef&pg=8344CCv1DEA/NGStagerImpact of Buildpack
The Commitmenthttps://github.com/cloudfoundry/dea_ng/commit/169f2c7b9137196f3f6e2dac291417395aeba310
Rest In Peace CCv1
Reverted and works– https://github.com/yudai/dea_ng/commit/ccce77553deff7cfc9b5a6191e12046207a42ced– Copy runtimes from C...
Upcoming SlideShare
Loading in...5
×

Nise BOSH in Action

2,742

Published on

Published in: Technology
1 Comment
7 Likes
Statistics
Notes
No Downloads
Views
Total Views
2,742
On Slideshare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
33
Comments
1
Likes
7
Embeds 0
No embeds

No notes for slide

Transcript of "Nise BOSH in Action"

  1. 1. Nise BOSH In ActionIwasaki Yudai @i_yudaiNTT Software Innovation Center2013-04-26
  2. 2. Installing cf-release jobs with Nise BOSH– What’s cf-release?– What’s Nise BOSH?– How to useDEA/NG and CCv1 compatibility– How to revert BuildPack supportAgenda
  3. 3. Installing cf-release jobs with Nise BOSH
  4. 4.  Preconfigured CF source code set– For installation with BOSH– Well-tested by many users– Portable• Minimum dependencies on apt packages• Including mysqlclient, imagemagick and so on...What’s cf-release?
  5. 5. Tool chain for distributed systems– Release engineering– Lifecycle management– Works with IaaS layers (CPI)• AWS, vSphere, vCloud and OpenStackWhat’s BOSH?(c) EMC & VMwarehttp://docs.cloudfoundry.com/docs/running/bosh/
  6. 6. Photo by yeowatzup from http://www.flickr.com/photos/yeowatzup/173818958/Heavybut worth trying
  7. 7. A lightweight BOSH (nearly) emulator– Works on a local machine– Without any CPIWhat’s Nise BOSHhttps://github.com/nttlabs/nise_bosh
  8. 8. ./bin/init– Stemcell-like environment builder./bin/nise-bosh– Package installer./bin/run-job– Job launcherMain Three ScriptsVMStemcelldea_next (Job template)common(Package)dea_next(Package)ruby(Package)Agent
  9. 9. Sets up Stemcell-like environment– Installs apt packages, create users and so on...Ported from Stemcell Builder stages– https://github.com/cloudfoundry/bosh/tree/master/stemcell_builder/./bin/initStemcell ≈ OS + bosh_agent + α= Basic VM imageVMStemcelldea_next (Job template)common(Package)dea_next(Package)ruby(Package)Agent
  10. 10. Installs packages and job templates– Automatically resolving dependencies– Running packaging scripts– Filling templates with deploy manifest./bin/nise-boshPackages:• References to source code• Packaging(installer) scriptsJob templates:• Package list• Configuration file/Control script/monitrc templates VMStemcelldea_next (Job template)common(Package)dea_next(Package)ruby(Package)Agent
  11. 11. Job launcher– Reads monitrc file from job templates• Resolving task dependencies– start/stop/status./bin/run-job
  12. 12. Entry on Cloud Foundry.com– http://blog.cloudfoundry.com/2013/04/15/ntt-contributes-nise-bosh-a-tool-to-speed-up-bosh-development/README.mdHow To Use
  13. 13. Ubuntu 10.04 64bit– Recommended for cf-releaseExample: Installing dea_next (1)sudo apt-get install git-core# Clone Nise BOSH and initialize the environmentgit clone https://github.com/nttlabs/nise_bosh.gitcd nise_boshsudo ./bin/initsudo reboot# Install ruby with rbenvcd ~git clone git://github.com/sstephenson/rbenv.git ~/.rbenvecho export PATH="$HOME/.rbenv/bin:$PATH" >> ~/.bash_profileecho eval "$(rbenv init -)" >> ~/.bash_profileexec $SHELL –lgit clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-buildrbenv install 1.9.3-p327rbenv global 1.9.3-p327# Install required gemsgem install bundlergem install bosh_clirbenv rehashUbuntu 10.04 64bit is recommended for cf-release
  14. 14. Generating package archives– `bosh craete release` creates pre-packaged tar files in .dev_buildsExample: Installing dea_next (2)# Clone cf-releasegit clone https://github.com/cloudfoundry/cf-release.gitcd cf-release./update # check out submodules# Create release packagesbosh create release –force # give ‘appcloud’ for the prompt
  15. 15. Deployment manifest– Compatible with BOSHExample: Install dea_next (3)vi ~/deploy.conf---properties:domain: vcap.menetworks:apps: defaultmanagement: defaultnats:user: natspassword: natsaddress: 127.0.0.1port: 4222dea_next:streaming_timeout: 60memory_mb: 4096memory_overcommit_factor: 1disk_mb: 32000disk_overcommit_factor: 1num_instances: 30
  16. 16. Installing dea_next job templateExample: Installing dea_next (4)cd ~/nise_boshsudo env PATH=$PATH bundle installsudo env PATH=$PATH bundle exec ./bin/nise-bosh ~/cf-release ~/deploy.confdea_next
  17. 17. Launching processesExample: Installing dea_next (5)sudo env PATH=$PATH bundle exec ./bin/run-job start
  18. 18. ./bin/nise-bosh has some options– See README.md
  19. 19. DEA/NG and CCv1 compatibility
  20. 20. 2013-04-26Photo from http://pdphoto.org/PictureDetail.php?mat=pdef&pg=8344CCv1DEA/NGStagerImpact of Buildpack
  21. 21. The Commitmenthttps://github.com/cloudfoundry/dea_ng/commit/169f2c7b9137196f3f6e2dac291417395aeba310
  22. 22. Rest In Peace CCv1
  23. 23. Reverted and works– https://github.com/yudai/dea_ng/commit/ccce77553deff7cfc9b5a6191e12046207a42ced– Copy runtimes from CCv1• ~/cloudfoundry/.deployments• Removed from cf-release• https://github.com/cloudfoundry/cf-release/commit/82984735556f931caacf010cf7b52a59032c401f– Disable integrated Stager– Add runtimes in config fileThe Return of CCv1
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×