SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Downloaden Sie, um offline zu lesen
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

Más contenido relacionado

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たのしく学ぼう
 

Último

EMEA What is ThousandEyes? Webinar
EMEA What is ThousandEyes? WebinarEMEA What is ThousandEyes? Webinar
EMEA What is ThousandEyes? WebinarThousandEyes
 
UiPath Studio Web workshop series - Day 4
UiPath Studio Web workshop series - Day 4UiPath Studio Web workshop series - Day 4
UiPath Studio Web workshop series - Day 4DianaGray10
 
SIM INFORMATION SYSTEM: REVOLUTIONIZING DATA MANAGEMENT
SIM INFORMATION SYSTEM: REVOLUTIONIZING DATA MANAGEMENTSIM INFORMATION SYSTEM: REVOLUTIONIZING DATA MANAGEMENT
SIM INFORMATION SYSTEM: REVOLUTIONIZING DATA MANAGEMENTxtailishbaloch
 
Planetek Italia Srl - Corporate Profile Brochure
Planetek Italia Srl - Corporate Profile BrochurePlanetek Italia Srl - Corporate Profile Brochure
Planetek Italia Srl - Corporate Profile BrochurePlanetek Italia Srl
 
UiPath Studio Web workshop Series - Day 3
UiPath Studio Web workshop Series - Day 3UiPath Studio Web workshop Series - Day 3
UiPath Studio Web workshop Series - Day 3DianaGray10
 
Top 10 Squarespace Development Companies
Top 10 Squarespace Development CompaniesTop 10 Squarespace Development Companies
Top 10 Squarespace Development CompaniesTopCSSGallery
 
Oracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptxOracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptxSatishbabu Gunukula
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightSafe Software
 
My key hands-on projects in Quantum, and QAI
My key hands-on projects in Quantum, and QAIMy key hands-on projects in Quantum, and QAI
My key hands-on projects in Quantum, and QAIVijayananda Mohire
 
Trailblazer Community - Flows Workshop (Session 2)
Trailblazer Community - Flows Workshop (Session 2)Trailblazer Community - Flows Workshop (Session 2)
Trailblazer Community - Flows Workshop (Session 2)Muhammad Tiham Siddiqui
 
Keep Your Finger on the Pulse of Your Building's Performance with IES Live
Keep Your Finger on the Pulse of Your Building's Performance with IES LiveKeep Your Finger on the Pulse of Your Building's Performance with IES Live
Keep Your Finger on the Pulse of Your Building's Performance with IES LiveIES VE
 
Scenario Library et REX Discover industry- and role- based scenarios
Scenario Library et REX Discover industry- and role- based scenariosScenario Library et REX Discover industry- and role- based scenarios
Scenario Library et REX Discover industry- and role- based scenariosErol GIRAUDY
 
3 Pitfalls Everyone Should Avoid with Cloud Data
3 Pitfalls Everyone Should Avoid with Cloud Data3 Pitfalls Everyone Should Avoid with Cloud Data
3 Pitfalls Everyone Should Avoid with Cloud DataEric D. Schabell
 
Q4 2023 Quarterly Investor Presentation - FINAL - v1.pdf
Q4 2023 Quarterly Investor Presentation - FINAL - v1.pdfQ4 2023 Quarterly Investor Presentation - FINAL - v1.pdf
Q4 2023 Quarterly Investor Presentation - FINAL - v1.pdfTejal81
 
Technical SEO for Improved Accessibility WTS FEST
Technical SEO for Improved Accessibility  WTS FESTTechnical SEO for Improved Accessibility  WTS FEST
Technical SEO for Improved Accessibility WTS FESTBillieHyde
 
Explore the UiPath Community and ways you can benefit on your journey to auto...
Explore the UiPath Community and ways you can benefit on your journey to auto...Explore the UiPath Community and ways you can benefit on your journey to auto...
Explore the UiPath Community and ways you can benefit on your journey to auto...DianaGray10
 
Outage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedIn
Outage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedInOutage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedIn
Outage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedInThousandEyes
 
20140402 - Smart house demo kit
20140402 - Smart house demo kit20140402 - Smart house demo kit
20140402 - Smart house demo kitJamie (Taka) Wang
 
Introduction - IPLOOK NETWORKS CO., LTD.
Introduction - IPLOOK NETWORKS CO., LTD.Introduction - IPLOOK NETWORKS CO., LTD.
Introduction - IPLOOK NETWORKS CO., LTD.IPLOOK Networks
 

Último (20)

EMEA What is ThousandEyes? Webinar
EMEA What is ThousandEyes? WebinarEMEA What is ThousandEyes? Webinar
EMEA What is ThousandEyes? Webinar
 
UiPath Studio Web workshop series - Day 4
UiPath Studio Web workshop series - Day 4UiPath Studio Web workshop series - Day 4
UiPath Studio Web workshop series - Day 4
 
SIM INFORMATION SYSTEM: REVOLUTIONIZING DATA MANAGEMENT
SIM INFORMATION SYSTEM: REVOLUTIONIZING DATA MANAGEMENTSIM INFORMATION SYSTEM: REVOLUTIONIZING DATA MANAGEMENT
SIM INFORMATION SYSTEM: REVOLUTIONIZING DATA MANAGEMENT
 
Planetek Italia Srl - Corporate Profile Brochure
Planetek Italia Srl - Corporate Profile BrochurePlanetek Italia Srl - Corporate Profile Brochure
Planetek Italia Srl - Corporate Profile Brochure
 
UiPath Studio Web workshop Series - Day 3
UiPath Studio Web workshop Series - Day 3UiPath Studio Web workshop Series - Day 3
UiPath Studio Web workshop Series - Day 3
 
Top 10 Squarespace Development Companies
Top 10 Squarespace Development CompaniesTop 10 Squarespace Development Companies
Top 10 Squarespace Development Companies
 
Oracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptxOracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptx
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
My key hands-on projects in Quantum, and QAI
My key hands-on projects in Quantum, and QAIMy key hands-on projects in Quantum, and QAI
My key hands-on projects in Quantum, and QAI
 
Trailblazer Community - Flows Workshop (Session 2)
Trailblazer Community - Flows Workshop (Session 2)Trailblazer Community - Flows Workshop (Session 2)
Trailblazer Community - Flows Workshop (Session 2)
 
Keep Your Finger on the Pulse of Your Building's Performance with IES Live
Keep Your Finger on the Pulse of Your Building's Performance with IES LiveKeep Your Finger on the Pulse of Your Building's Performance with IES Live
Keep Your Finger on the Pulse of Your Building's Performance with IES Live
 
Scenario Library et REX Discover industry- and role- based scenarios
Scenario Library et REX Discover industry- and role- based scenariosScenario Library et REX Discover industry- and role- based scenarios
Scenario Library et REX Discover industry- and role- based scenarios
 
3 Pitfalls Everyone Should Avoid with Cloud Data
3 Pitfalls Everyone Should Avoid with Cloud Data3 Pitfalls Everyone Should Avoid with Cloud Data
3 Pitfalls Everyone Should Avoid with Cloud Data
 
Q4 2023 Quarterly Investor Presentation - FINAL - v1.pdf
Q4 2023 Quarterly Investor Presentation - FINAL - v1.pdfQ4 2023 Quarterly Investor Presentation - FINAL - v1.pdf
Q4 2023 Quarterly Investor Presentation - FINAL - v1.pdf
 
Technical SEO for Improved Accessibility WTS FEST
Technical SEO for Improved Accessibility  WTS FESTTechnical SEO for Improved Accessibility  WTS FEST
Technical SEO for Improved Accessibility WTS FEST
 
Explore the UiPath Community and ways you can benefit on your journey to auto...
Explore the UiPath Community and ways you can benefit on your journey to auto...Explore the UiPath Community and ways you can benefit on your journey to auto...
Explore the UiPath Community and ways you can benefit on your journey to auto...
 
Outage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedIn
Outage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedInOutage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedIn
Outage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedIn
 
SheDev 2024
SheDev 2024SheDev 2024
SheDev 2024
 
20140402 - Smart house demo kit
20140402 - Smart house demo kit20140402 - Smart house demo kit
20140402 - Smart house demo kit
 
Introduction - IPLOOK NETWORKS CO., LTD.
Introduction - IPLOOK NETWORKS CO., LTD.Introduction - IPLOOK NETWORKS CO., LTD.
Introduction - IPLOOK NETWORKS CO., LTD.
 

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