7. All in One環境とは
‣ たくさんあるコンポーネント
を1台のVMに集約した環境
‣
‣
‣
‣
‣
‣
‣
‣
Cloud Controller
DEA
UAA
Health Manager
NATS
Service Gateway
Service Node
Gorouter, etc…
8. 簡単だったv1 All in One
‣ Cloud Foundry v1では、chef-soloをベースにした
「dev_setup」という仕組みが用意されており、それを実行
するだけでCF環境の構築ができた。
$ bash < <(curl -s -k -B https://raw.github.com/cloudfoundry/
vcap/master/dev_setup/bin/vcap_dev_setup)
・@IT オリジナルのCloud Foundryサイトを構築する
http://www.atmarkit.co.jp/ait/articles/1206/22/news141.html
・Software Design 2013年3月号
など、資料多数
25. ② CF Vagrant Installerを使ってAll in Oneセットアップ
https://github.com/Altoros/cf-vagrant-installer
26. ② CF Vagrant Installerを使ってAll in Oneセットアップ
手順
1.git clone https://github.com/Altoros/cf-vagrant-installer.git
‣ cd cf-vagrant-installer
‣ rake host:bootstrap
‣ vagrant up
31. ③ bosh-liteを使ってAll in Oneのセットアップ
手順
1. Ruby 1.9.3-p484 (これ試した時点での最新) のセットアップ
2. Golangのセットアップ http://golang.jp/install#osx
3. mkdir ~/workspace/ ; cd ~/workspace/
4. git clone git@github.com:cloudfoundry/cf-release.git
5. bosh-liteのセットアップ
git clone git@github.com:cloudfoundry/bosh-lite.git
cd bosh-lite
bundle
vagrant up
bosh target
bosh target 192.168.50.4
Target set to `Bosh Lite Director'
Your username: admin
Enter password: admin
Logged in as `admin'
32. 6. bosh upload stemcell http://bosh-jenkins-gemswarden.s3.amazonaws.com/stemcells/latest-bosh-stemcellwarden.tgz
7. spiffのセットアップ
brew install bzr
export GOPATH=~/go
export PATH=~/go/bin:$PATH
※ この後bazaarが動かなかったので、
sudo ln -s /usr/local/Cellar/bazaar/2.6.0/lib/python2.7/site-packages/bzrlib /Library/Python/2.7/
site-packages/bzrlib を実行
go get -v github.com/vito/spiff
!
8. manifestの作成
./scripts/make_manifest_spiff
!
9. mysql ,postgresのインストール
それぞれの環境でやっておいてください><
33. 9. Create Release
1. cd ~/workspace/cf-release
2. git submodule update —init —recursive
3. bosh create release
途中で名前を聞かれるのでcfと入力
4. bosh upload release
5. bosh deploy