SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Nise BOSH In Action
Iwasaki Yudai @i_yudai
NTT Software Innovation Center
2013-04-26
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 support
Agenda
Installing cf-release jobs with Nise BOSH
 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?
Tool chain for distributed systems
– Release engineering
– Lifecycle management
– Works with IaaS layers (CPI)
• AWS, vSphere, vCloud and OpenStack
What’s BOSH?
(c) EMC & VMware
http://docs.cloudfoundry.com/docs/running/bosh/
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 CPI
What’s Nise BOSH
https://github.com/nttlabs/nise_bosh
./bin/init
– Stemcell-like environment builder
./bin/nise-bosh
– Package installer
./bin/run-job
– Job launcher
Main Three Scripts
VM
Stemcell
dea_next (Job template)
common
(Package)
dea_next
(Package)
ruby
(Package)
Agent
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/init
Stemcell ≈ OS + bosh_agent + α
= Basic VM image
VM
Stemcell
dea_next (Job template)
common
(Package)
dea_next
(Package)
ruby
(Package)
Agent
Installs packages and job templates
– Automatically resolving dependencies
– Running packaging scripts
– Filling templates with deploy manifest
./bin/nise-bosh
Packages:
• References to source code
• Packaging(installer) scripts
Job templates:
• Package list
• Configuration file/Control script/monitrc templates VM
Stemcell
dea_next (Job template)
common
(Package)
dea_next
(Package)
ruby
(Package)
Agent
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-development/
README.md
How To Use
Ubuntu 10.04 64bit
– Recommended for cf-release
Example: Installing dea_next (1)
sudo apt-get install git-core
# Clone Nise BOSH and initialize the environment
git clone https://github.com/nttlabs/nise_bosh.git
cd nise_bosh
sudo ./bin/init
sudo reboot
# Install ruby with rbenv
cd ~
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
exec $SHELL –l
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 1.9.3-p327
rbenv global 1.9.3-p327
# Install required gems
gem install bundler
gem install bosh_cli
rbenv rehash
Ubuntu 10.04 64bit is recommended for cf-release
Generating package archives
– `bosh craete release` creates pre-
packaged tar files in .dev_builds
Example: Installing dea_next (2)
# Clone cf-release
git clone https://github.com/cloudfoundry/cf-release.git
cd cf-release
./update # check out submodules
# Create release packages
bosh create release –force # give ‘appcloud’ for the prompt
Deployment manifest
– Compatible with BOSH
Example: Install dea_next (3)
vi ~/deploy.conf
---
properties:
domain: vcap.me
networks:
apps: default
management: default
nats:
user: nats
password: nats
address: 127.0.0.1
port: 4222
dea_next:
streaming_timeout: 60
memory_mb: 4096
memory_overcommit_factor: 1
disk_mb: 32000
disk_overcommit_factor: 1
num_instances: 30
Installing dea_next job template
Example: Installing dea_next (4)
cd ~/nise_bosh
sudo env PATH=$PATH bundle install
sudo env PATH=$PATH bundle exec ./bin/nise-bosh ~/cf-release ~/deploy.conf
dea_next
Launching processes
Example: 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-26
Photo from http://pdphoto.org/PictureDetail.php?mat=pdef&pg=8344
CCv1
DEA/NG
Stager
Impact of Buildpack
The Commitment
https://github.com/cloudfoundry/dea_ng/commit/169f2c7b9137196f3f6e2dac291417395aeba310
Rest In Peace CCv1
Reverted and works
– https://github.com/yudai/dea_ng/commit/ccce77553deff7cfc9b5
a6191e12046207a42ced
– 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 file
The Return of CCv1

Weitere ähnliche Inhalte

Was ist angesagt?

Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)Simon Boulet
 
XPDS13: Xenserver-core: What it is, how it is built and how to get involved -...
XPDS13: Xenserver-core: What it is, how it is built and how to get involved -...XPDS13: Xenserver-core: What it is, how it is built and how to get involved -...
XPDS13: Xenserver-core: What it is, how it is built and how to get involved -...The Linux Foundation
 
Mesos DC/OS on opensuse
Mesos DC/OS on opensuseMesos DC/OS on opensuse
Mesos DC/OS on opensuseMasayuki Igawa
 
CentOS Virt SIG - Community virtualization packages on an immutable core
CentOS Virt SIG - Community virtualization packages on an immutable coreCentOS Virt SIG - Community virtualization packages on an immutable core
CentOS Virt SIG - Community virtualization packages on an immutable coreThe Linux Foundation
 
Install and Configure Ubuntu for Hadoop Installation for beginners
Install and Configure Ubuntu for Hadoop Installation for beginners Install and Configure Ubuntu for Hadoop Installation for beginners
Install and Configure Ubuntu for Hadoop Installation for beginners Shilpa Hemaraj
 
recent CF repositories
recent CF repositoriesrecent CF repositories
recent CF repositoriesKen Ojiri
 
AWS 기반 Docker, Kubernetes
AWS 기반 Docker, KubernetesAWS 기반 Docker, Kubernetes
AWS 기반 Docker, Kubernetes정빈 권
 
How to manage Microsoft Azure with open source
How to manage Microsoft Azure with open sourceHow to manage Microsoft Azure with open source
How to manage Microsoft Azure with open sourceTaehee Jang
 
Using Capifony for Symfony apps deployment (updated)
Using Capifony for Symfony apps deployment (updated)Using Capifony for Symfony apps deployment (updated)
Using Capifony for Symfony apps deployment (updated)Žilvinas Kuusas
 
Deploying to Ubuntu on Linode
Deploying to Ubuntu on LinodeDeploying to Ubuntu on Linode
Deploying to Ubuntu on LinodeWO Community
 
Docker puppetcamp london 2013
Docker puppetcamp london 2013Docker puppetcamp london 2013
Docker puppetcamp london 2013Tomas Doran
 
Wocker @WordBench Osaka No.41
Wocker @WordBench Osaka No.41Wocker @WordBench Osaka No.41
Wocker @WordBench Osaka No.41Kite Koga
 
Getting instantly up and running with Docker and Symfony
Getting instantly up and running with Docker and SymfonyGetting instantly up and running with Docker and Symfony
Getting instantly up and running with Docker and SymfonyAndré Rømcke
 
Introduction to FreeNAS development by John Hixson
Introduction to FreeNAS development by John HixsonIntroduction to FreeNAS development by John Hixson
Introduction to FreeNAS development by John HixsoniXsystems
 
What's new in SUSE Studio land
What's new in SUSE Studio landWhat's new in SUSE Studio land
What's new in SUSE Studio landJan Krupa
 
Automating Kubernetes Environments with Ansible
Automating Kubernetes Environments with AnsibleAutomating Kubernetes Environments with Ansible
Automating Kubernetes Environments with AnsibleTimothy Appnel
 

Was ist angesagt? (20)

Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
 
Aloofix
AloofixAloofix
Aloofix
 
XPDS13: Xenserver-core: What it is, how it is built and how to get involved -...
XPDS13: Xenserver-core: What it is, how it is built and how to get involved -...XPDS13: Xenserver-core: What it is, how it is built and how to get involved -...
XPDS13: Xenserver-core: What it is, how it is built and how to get involved -...
 
Mesos DC/OS on opensuse
Mesos DC/OS on opensuseMesos DC/OS on opensuse
Mesos DC/OS on opensuse
 
CentOS Virt SIG - Community virtualization packages on an immutable core
CentOS Virt SIG - Community virtualization packages on an immutable coreCentOS Virt SIG - Community virtualization packages on an immutable core
CentOS Virt SIG - Community virtualization packages on an immutable core
 
Ftp configuration
Ftp configurationFtp configuration
Ftp configuration
 
Install and Configure Ubuntu for Hadoop Installation for beginners
Install and Configure Ubuntu for Hadoop Installation for beginners Install and Configure Ubuntu for Hadoop Installation for beginners
Install and Configure Ubuntu for Hadoop Installation for beginners
 
recent CF repositories
recent CF repositoriesrecent CF repositories
recent CF repositories
 
AWS 기반 Docker, Kubernetes
AWS 기반 Docker, KubernetesAWS 기반 Docker, Kubernetes
AWS 기반 Docker, Kubernetes
 
How to manage Microsoft Azure with open source
How to manage Microsoft Azure with open sourceHow to manage Microsoft Azure with open source
How to manage Microsoft Azure with open source
 
Using Capifony for Symfony apps deployment (updated)
Using Capifony for Symfony apps deployment (updated)Using Capifony for Symfony apps deployment (updated)
Using Capifony for Symfony apps deployment (updated)
 
Deploying to Ubuntu on Linode
Deploying to Ubuntu on LinodeDeploying to Ubuntu on Linode
Deploying to Ubuntu on Linode
 
Docker puppetcamp london 2013
Docker puppetcamp london 2013Docker puppetcamp london 2013
Docker puppetcamp london 2013
 
Wocker @WordBench Osaka No.41
Wocker @WordBench Osaka No.41Wocker @WordBench Osaka No.41
Wocker @WordBench Osaka No.41
 
Getting instantly up and running with Docker and Symfony
Getting instantly up and running with Docker and SymfonyGetting instantly up and running with Docker and Symfony
Getting instantly up and running with Docker and Symfony
 
Introduction to FreeNAS development by John Hixson
Introduction to FreeNAS development by John HixsonIntroduction to FreeNAS development by John Hixson
Introduction to FreeNAS development by John Hixson
 
Cobbler, Func and Puppet: Tools for Large Scale Environments
Cobbler, Func and Puppet: Tools for Large Scale EnvironmentsCobbler, Func and Puppet: Tools for Large Scale Environments
Cobbler, Func and Puppet: Tools for Large Scale Environments
 
What's new in SUSE Studio land
What's new in SUSE Studio landWhat's new in SUSE Studio land
What's new in SUSE Studio land
 
My First BCC
My First BCCMy First BCC
My First BCC
 
Automating Kubernetes Environments with Ansible
Automating Kubernetes Environments with AnsibleAutomating Kubernetes Environments with Ansible
Automating Kubernetes Environments with Ansible
 

Andere mochten auch

Cloud Foundry Admin UI v2を使ってみた
Cloud Foundry Admin UI v2を使ってみたCloud Foundry Admin UI v2を使ってみた
Cloud Foundry Admin UI v2を使ってみたi_yudai
 
Pivotal Web Services - a Real World Example of Running Cloud Foundry at Scale...
Pivotal Web Services - a Real World Example of Running Cloud Foundry at Scale...Pivotal Web Services - a Real World Example of Running Cloud Foundry at Scale...
Pivotal Web Services - a Real World Example of Running Cloud Foundry at Scale...VMware Tanzu
 
Epm fm-1111x-provisioning-whitepape-133674
Epm fm-1111x-provisioning-whitepape-133674Epm fm-1111x-provisioning-whitepape-133674
Epm fm-1111x-provisioning-whitepape-133674Sathya Narayanan
 
Connect and combine
Connect and combineConnect and combine
Connect and combineAjay Tyagi
 
Marks Sattin Accounting Sector Market Research Presentation - Sydney
Marks Sattin Accounting Sector Market Research Presentation - SydneyMarks Sattin Accounting Sector Market Research Presentation - Sydney
Marks Sattin Accounting Sector Market Research Presentation - Sydneyieuan84
 
The marketing benefits of e-cigarettes: a tobacco industry perspective
The marketing benefits of e-cigarettes: a tobacco industry perspective The marketing benefits of e-cigarettes: a tobacco industry perspective
The marketing benefits of e-cigarettes: a tobacco industry perspective UCT ICO
 
Customer Bulletin 0515 A Comparison of ISO ISO-C1 and HT-300
Customer Bulletin 0515 A Comparison of ISO ISO-C1 and HT-300Customer Bulletin 0515 A Comparison of ISO ISO-C1 and HT-300
Customer Bulletin 0515 A Comparison of ISO ISO-C1 and HT-300Dyplast Products
 
Helmet verkkoon hankekoulu_vuosikello
Helmet verkkoon hankekoulu_vuosikelloHelmet verkkoon hankekoulu_vuosikello
Helmet verkkoon hankekoulu_vuosikellolansisuomenhelmet
 
めんどうくさくないWardenハンズオン
めんどうくさくないWardenハンズオンめんどうくさくないWardenハンズオン
めんどうくさくないWardenハンズオンi_yudai
 
Material necessari per a fer un hort urbà
Material necessari per a fer un hort urbàMaterial necessari per a fer un hort urbà
Material necessari per a fer un hort urbàclaretadac3
 
Social media + Local Search - Liana Evans- Digitizing
Social media + Local Search - Liana Evans- DigitizingSocial media + Local Search - Liana Evans- Digitizing
Social media + Local Search - Liana Evans- Digitizingel_chambers
 
פסיכיאטריה קהילתית 2
פסיכיאטריה קהילתית 2פסיכיאטריה קהילתית 2
פסיכיאטריה קהילתית 2TsviGil
 
Online smart investor courses
Online smart  investor coursesOnline smart  investor courses
Online smart investor coursesphillipcapitalth
 
Co-Op/MDF Whitepaper by Computer Market Research
Co-Op/MDF Whitepaper by Computer Market ResearchCo-Op/MDF Whitepaper by Computer Market Research
Co-Op/MDF Whitepaper by Computer Market ResearchRon Bostater
 
News Flash - March 2013 - abm & associates
News Flash - March 2013 - abm & associatesNews Flash - March 2013 - abm & associates
News Flash - March 2013 - abm & associatesGuruprasad Shetty
 

Andere mochten auch (19)

Cloud Foundry Admin UI v2を使ってみた
Cloud Foundry Admin UI v2を使ってみたCloud Foundry Admin UI v2を使ってみた
Cloud Foundry Admin UI v2を使ってみた
 
Pivotal Web Services - a Real World Example of Running Cloud Foundry at Scale...
Pivotal Web Services - a Real World Example of Running Cloud Foundry at Scale...Pivotal Web Services - a Real World Example of Running Cloud Foundry at Scale...
Pivotal Web Services - a Real World Example of Running Cloud Foundry at Scale...
 
Epm fm-1111x-provisioning-whitepape-133674
Epm fm-1111x-provisioning-whitepape-133674Epm fm-1111x-provisioning-whitepape-133674
Epm fm-1111x-provisioning-whitepape-133674
 
Connect and combine
Connect and combineConnect and combine
Connect and combine
 
Marks Sattin Accounting Sector Market Research Presentation - Sydney
Marks Sattin Accounting Sector Market Research Presentation - SydneyMarks Sattin Accounting Sector Market Research Presentation - Sydney
Marks Sattin Accounting Sector Market Research Presentation - Sydney
 
Bdpanel
BdpanelBdpanel
Bdpanel
 
The marketing benefits of e-cigarettes: a tobacco industry perspective
The marketing benefits of e-cigarettes: a tobacco industry perspective The marketing benefits of e-cigarettes: a tobacco industry perspective
The marketing benefits of e-cigarettes: a tobacco industry perspective
 
V ing
V ingV ing
V ing
 
Customer Bulletin 0515 A Comparison of ISO ISO-C1 and HT-300
Customer Bulletin 0515 A Comparison of ISO ISO-C1 and HT-300Customer Bulletin 0515 A Comparison of ISO ISO-C1 and HT-300
Customer Bulletin 0515 A Comparison of ISO ISO-C1 and HT-300
 
Helmet verkkoon hankekoulu_vuosikello
Helmet verkkoon hankekoulu_vuosikelloHelmet verkkoon hankekoulu_vuosikello
Helmet verkkoon hankekoulu_vuosikello
 
めんどうくさくないWardenハンズオン
めんどうくさくないWardenハンズオンめんどうくさくないWardenハンズオン
めんどうくさくないWardenハンズオン
 
Material necessari per a fer un hort urbà
Material necessari per a fer un hort urbàMaterial necessari per a fer un hort urbà
Material necessari per a fer un hort urbà
 
Social media + Local Search - Liana Evans- Digitizing
Social media + Local Search - Liana Evans- DigitizingSocial media + Local Search - Liana Evans- Digitizing
Social media + Local Search - Liana Evans- Digitizing
 
Master Strokes
Master StrokesMaster Strokes
Master Strokes
 
Workle presentation june 2012
Workle presentation june 2012Workle presentation june 2012
Workle presentation june 2012
 
פסיכיאטריה קהילתית 2
פסיכיאטריה קהילתית 2פסיכיאטריה קהילתית 2
פסיכיאטריה קהילתית 2
 
Online smart investor courses
Online smart  investor coursesOnline smart  investor courses
Online smart investor courses
 
Co-Op/MDF Whitepaper by Computer Market Research
Co-Op/MDF Whitepaper by Computer Market ResearchCo-Op/MDF Whitepaper by Computer Market Research
Co-Op/MDF Whitepaper by Computer Market Research
 
News Flash - March 2013 - abm & associates
News Flash - March 2013 - abm & associatesNews Flash - March 2013 - abm & associates
News Flash - March 2013 - abm & associates
 

Ähnlich wie Nise BOSH in Action

Altoros Cloud Foundry Training: hands-on workshop for DevOps, Architects and ...
Altoros Cloud Foundry Training: hands-on workshop for DevOps, Architects and ...Altoros Cloud Foundry Training: hands-on workshop for DevOps, Architects and ...
Altoros Cloud Foundry Training: hands-on workshop for DevOps, Architects and ...Manuel Garcia
 
An Overview of the IHK/McKernel Multi-kernel Operating System
An Overview of the IHK/McKernel Multi-kernel Operating SystemAn Overview of the IHK/McKernel Multi-kernel Operating System
An Overview of the IHK/McKernel Multi-kernel Operating SystemLinaro
 
ASP.NET 5 auf Raspberry PI & docker
ASP.NET 5 auf Raspberry PI & dockerASP.NET 5 auf Raspberry PI & docker
ASP.NET 5 auf Raspberry PI & dockerJürgen Gutsch
 
Using rbenv in Production
Using rbenv in ProductionUsing rbenv in Production
Using rbenv in ProductionNic Benders
 
Calico with open stack and chef
Calico with open stack and chefCalico with open stack and chef
Calico with open stack and chefD.Rajesh Kumar
 
Baylisa - Dive Into OpenStack
Baylisa - Dive Into OpenStackBaylisa - Dive Into OpenStack
Baylisa - Dive Into OpenStackJesse Andrews
 
Poky meets Debian: Understanding how to make an embedded Linux by using an ex...
Poky meets Debian: Understanding how to make an embedded Linux by using an ex...Poky meets Debian: Understanding how to make an embedded Linux by using an ex...
Poky meets Debian: Understanding how to make an embedded Linux by using an ex...Yoshitake Kobayashi
 
Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014biicode
 
Nuxeo5 - Continuous Integration
Nuxeo5 - Continuous IntegrationNuxeo5 - Continuous Integration
Nuxeo5 - Continuous IntegrationPASCAL Jean Marie
 
Adopt DevOps philosophy on your Symfony projects (Symfony Live 2011)
Adopt DevOps philosophy on your Symfony projects (Symfony Live 2011)Adopt DevOps philosophy on your Symfony projects (Symfony Live 2011)
Adopt DevOps philosophy on your Symfony projects (Symfony Live 2011)Fabrice Bernhard
 
20111011 bigbluebutton
20111011 bigbluebutton20111011 bigbluebutton
20111011 bigbluebuttonhs1250
 
PHP on Heroku: Deploying and Scaling Apps in the Cloud
PHP on Heroku: Deploying and Scaling Apps in the CloudPHP on Heroku: Deploying and Scaling Apps in the Cloud
PHP on Heroku: Deploying and Scaling Apps in the CloudSalesforce Developers
 
An Introduction into Bosh | anynines
An Introduction into Bosh | anynines An Introduction into Bosh | anynines
An Introduction into Bosh | anynines anynines GmbH
 
Apache Bigtop and ARM64 / AArch64 - Empowering Big Data Everywhere
Apache Bigtop and ARM64 / AArch64 - Empowering Big Data EverywhereApache Bigtop and ARM64 / AArch64 - Empowering Big Data Everywhere
Apache Bigtop and ARM64 / AArch64 - Empowering Big Data EverywhereGanesh Raju
 
Ansible is the simplest way to automate. SymfonyCafe, 2015
Ansible is the simplest way to automate. SymfonyCafe, 2015Ansible is the simplest way to automate. SymfonyCafe, 2015
Ansible is the simplest way to automate. SymfonyCafe, 2015Alex S
 

Ähnlich wie Nise BOSH in Action (20)

Altoros Cloud Foundry Training: hands-on workshop for DevOps, Architects and ...
Altoros Cloud Foundry Training: hands-on workshop for DevOps, Architects and ...Altoros Cloud Foundry Training: hands-on workshop for DevOps, Architects and ...
Altoros Cloud Foundry Training: hands-on workshop for DevOps, Architects and ...
 
Building For Mer
Building For MerBuilding For Mer
Building For Mer
 
Kubernetes
KubernetesKubernetes
Kubernetes
 
An Overview of the IHK/McKernel Multi-kernel Operating System
An Overview of the IHK/McKernel Multi-kernel Operating SystemAn Overview of the IHK/McKernel Multi-kernel Operating System
An Overview of the IHK/McKernel Multi-kernel Operating System
 
ASP.NET 5 auf Raspberry PI & docker
ASP.NET 5 auf Raspberry PI & dockerASP.NET 5 auf Raspberry PI & docker
ASP.NET 5 auf Raspberry PI & docker
 
Kayobe_desc
Kayobe_descKayobe_desc
Kayobe_desc
 
Using rbenv in Production
Using rbenv in ProductionUsing rbenv in Production
Using rbenv in Production
 
Calico with open stack and chef
Calico with open stack and chefCalico with open stack and chef
Calico with open stack and chef
 
Baylisa - Dive Into OpenStack
Baylisa - Dive Into OpenStackBaylisa - Dive Into OpenStack
Baylisa - Dive Into OpenStack
 
Poky meets Debian: Understanding how to make an embedded Linux by using an ex...
Poky meets Debian: Understanding how to make an embedded Linux by using an ex...Poky meets Debian: Understanding how to make an embedded Linux by using an ex...
Poky meets Debian: Understanding how to make an embedded Linux by using an ex...
 
Belvedere
BelvedereBelvedere
Belvedere
 
Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014
 
Nuxeo5 - Continuous Integration
Nuxeo5 - Continuous IntegrationNuxeo5 - Continuous Integration
Nuxeo5 - Continuous Integration
 
Adopt DevOps philosophy on your Symfony projects (Symfony Live 2011)
Adopt DevOps philosophy on your Symfony projects (Symfony Live 2011)Adopt DevOps philosophy on your Symfony projects (Symfony Live 2011)
Adopt DevOps philosophy on your Symfony projects (Symfony Live 2011)
 
20111011 bigbluebutton
20111011 bigbluebutton20111011 bigbluebutton
20111011 bigbluebutton
 
PHP on Heroku: Deploying and Scaling Apps in the Cloud
PHP on Heroku: Deploying and Scaling Apps in the CloudPHP on Heroku: Deploying and Scaling Apps in the Cloud
PHP on Heroku: Deploying and Scaling Apps in the Cloud
 
Build & test Apache Hawq
Build & test Apache Hawq Build & test Apache Hawq
Build & test Apache Hawq
 
An Introduction into Bosh | anynines
An Introduction into Bosh | anynines An Introduction into Bosh | anynines
An Introduction into Bosh | anynines
 
Apache Bigtop and ARM64 / AArch64 - Empowering Big Data Everywhere
Apache Bigtop and ARM64 / AArch64 - Empowering Big Data EverywhereApache Bigtop and ARM64 / AArch64 - Empowering Big Data Everywhere
Apache Bigtop and ARM64 / AArch64 - Empowering Big Data Everywhere
 
Ansible is the simplest way to automate. SymfonyCafe, 2015
Ansible is the simplest way to automate. SymfonyCafe, 2015Ansible is the simplest way to automate. SymfonyCafe, 2015
Ansible is the simplest way to automate. SymfonyCafe, 2015
 

Mehr von i_yudai

Autoscaling Cloud Foundry with BOSH
Autoscaling Cloud Foundry with BOSHAutoscaling Cloud Foundry with BOSH
Autoscaling Cloud Foundry with BOSHi_yudai
 
OSTree: OSイメージとパッケージシステムの間にGitのアプローチを
OSTree: OSイメージとパッケージシステムの間にGitのアプローチをOSTree: OSイメージとパッケージシステムの間にGitのアプローチを
OSTree: OSイメージとパッケージシステムの間にGitのアプローチをi_yudai
 
BOSHで始めるImmutable Infrastructure
BOSHで始めるImmutable InfrastructureBOSHで始めるImmutable Infrastructure
BOSHで始めるImmutable Infrastructurei_yudai
 
BOSH-lite で 1VM Cloud Foundry
BOSH-lite で 1VM Cloud FoundryBOSH-lite で 1VM Cloud Foundry
BOSH-lite で 1VM Cloud Foundryi_yudai
 
DevStackで始めるCloud FoundryとBOSH
DevStackで始めるCloud FoundryとBOSHDevStackで始めるCloud FoundryとBOSH
DevStackで始めるCloud FoundryとBOSHi_yudai
 
BOSHでお手軽CFデプロイon AWS
BOSHでお手軽CFデプロイon AWSBOSHでお手軽CFデプロイon AWS
BOSHでお手軽CFデプロイon AWSi_yudai
 
マスタリング DEA/NG 第2版
マスタリング DEA/NG 第2版マスタリング DEA/NG 第2版
マスタリング DEA/NG 第2版i_yudai
 
すごく分かるwarden
すごく分かるwardenすごく分かるwarden
すごく分かるwardeni_yudai
 
すごいBOSHたのしく学ぼう
すごいBOSHたのしく学ぼうすごいBOSHたのしく学ぼう
すごいBOSHたのしく学ぼうi_yudai
 

Mehr von i_yudai (9)

Autoscaling Cloud Foundry with BOSH
Autoscaling Cloud Foundry with BOSHAutoscaling Cloud Foundry with BOSH
Autoscaling Cloud Foundry with BOSH
 
OSTree: OSイメージとパッケージシステムの間にGitのアプローチを
OSTree: OSイメージとパッケージシステムの間にGitのアプローチをOSTree: OSイメージとパッケージシステムの間にGitのアプローチを
OSTree: OSイメージとパッケージシステムの間にGitのアプローチを
 
BOSHで始めるImmutable Infrastructure
BOSHで始めるImmutable InfrastructureBOSHで始めるImmutable Infrastructure
BOSHで始めるImmutable Infrastructure
 
BOSH-lite で 1VM Cloud Foundry
BOSH-lite で 1VM Cloud FoundryBOSH-lite で 1VM Cloud Foundry
BOSH-lite で 1VM Cloud Foundry
 
DevStackで始めるCloud FoundryとBOSH
DevStackで始めるCloud FoundryとBOSHDevStackで始めるCloud FoundryとBOSH
DevStackで始めるCloud FoundryとBOSH
 
BOSHでお手軽CFデプロイon AWS
BOSHでお手軽CFデプロイon AWSBOSHでお手軽CFデプロイon AWS
BOSHでお手軽CFデプロイon AWS
 
マスタリング DEA/NG 第2版
マスタリング DEA/NG 第2版マスタリング DEA/NG 第2版
マスタリング DEA/NG 第2版
 
すごく分かるwarden
すごく分かるwardenすごく分かるwarden
すごく分かるwarden
 
すごいBOSHたのしく学ぼう
すごいBOSHたのしく学ぼうすごいBOSHたのしく学ぼう
すごいBOSHたのしく学ぼう
 

Kürzlich hochgeladen

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 

Kürzlich hochgeladen (20)

DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 

Nise BOSH in Action

  • 1. Nise BOSH In Action Iwasaki Yudai @i_yudai NTT Software Innovation Center 2013-04-26
  • 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 support Agenda
  • 3. Installing cf-release jobs with Nise BOSH
  • 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. Tool chain for distributed systems – Release engineering – Lifecycle management – Works with IaaS layers (CPI) • AWS, vSphere, vCloud and OpenStack What’s BOSH? (c) EMC & VMware http://docs.cloudfoundry.com/docs/running/bosh/
  • 6. Photo by yeowatzup from http://www.flickr.com/photos/yeowatzup/173818958/ Heavybut worth trying
  • 7. A lightweight BOSH (nearly) emulator – Works on a local machine – Without any CPI What’s Nise BOSH https://github.com/nttlabs/nise_bosh
  • 8. ./bin/init – Stemcell-like environment builder ./bin/nise-bosh – Package installer ./bin/run-job – Job launcher Main Three Scripts VM Stemcell dea_next (Job template) common (Package) dea_next (Package) ruby (Package) Agent
  • 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/init Stemcell ≈ OS + bosh_agent + α = Basic VM image VM Stemcell dea_next (Job template) common (Package) dea_next (Package) ruby (Package) Agent
  • 10. Installs packages and job templates – Automatically resolving dependencies – Running packaging scripts – Filling templates with deploy manifest ./bin/nise-bosh Packages: • References to source code • Packaging(installer) scripts Job templates: • Package list • Configuration file/Control script/monitrc templates VM Stemcell dea_next (Job template) common (Package) dea_next (Package) ruby (Package) Agent
  • 11. Job launcher – Reads monitrc file from job templates • Resolving task dependencies – start/stop/status ./bin/run-job
  • 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.md How To Use
  • 13. Ubuntu 10.04 64bit – Recommended for cf-release Example: Installing dea_next (1) sudo apt-get install git-core # Clone Nise BOSH and initialize the environment git clone https://github.com/nttlabs/nise_bosh.git cd nise_bosh sudo ./bin/init sudo reboot # Install ruby with rbenv cd ~ git clone git://github.com/sstephenson/rbenv.git ~/.rbenv echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile echo 'eval "$(rbenv init -)"' >> ~/.bash_profile exec $SHELL –l git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build rbenv install 1.9.3-p327 rbenv global 1.9.3-p327 # Install required gems gem install bundler gem install bosh_cli rbenv rehash Ubuntu 10.04 64bit is recommended for cf-release
  • 14. Generating package archives – `bosh craete release` creates pre- packaged tar files in .dev_builds Example: Installing dea_next (2) # Clone cf-release git clone https://github.com/cloudfoundry/cf-release.git cd cf-release ./update # check out submodules # Create release packages bosh create release –force # give ‘appcloud’ for the prompt
  • 15. Deployment manifest – Compatible with BOSH Example: Install dea_next (3) vi ~/deploy.conf --- properties: domain: vcap.me networks: apps: default management: default nats: user: nats password: nats address: 127.0.0.1 port: 4222 dea_next: streaming_timeout: 60 memory_mb: 4096 memory_overcommit_factor: 1 disk_mb: 32000 disk_overcommit_factor: 1 num_instances: 30
  • 16. Installing dea_next job template Example: Installing dea_next (4) cd ~/nise_bosh sudo env PATH=$PATH bundle install sudo env PATH=$PATH bundle exec ./bin/nise-bosh ~/cf-release ~/deploy.conf dea_next
  • 17. Launching processes Example: Installing dea_next (5) sudo env PATH=$PATH bundle exec ./bin/run-job start
  • 18. ./bin/nise-bosh has some options – See README.md
  • 19. DEA/NG and CCv1 compatibility
  • 23. Reverted and works – https://github.com/yudai/dea_ng/commit/ccce77553deff7cfc9b5 a6191e12046207a42ced – 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 file The Return of CCv1