您的位置:首页 > 其它

基于vsphere的bosh部署cloudfoundry

2013-12-24 12:14 218 查看
本篇为自己部署的记录,有写的不明确的欢迎指正

1.在其中一台主机上安装虚拟机BoshCli(ubuntu10操作系统),使用一台PC亦可

2.BoshCli上安装ruby环境

参见 http://oldfritters.iteye.com/blog/1824841
3.安装bosh_cli

Shell代码


sudo apt-get -y install libsqlite3-dev genisoimage
gem install bosh_deployer
gem install bosh_cli

Shell代码


gem "agent_client", "0.1.1"
gem "aws-s3", "0.6.3"
gem "aws-sdk", "1.6.9"
gem "blobstore_client", "0.4.0"
gem "bosh_aws_cpi", "0.6.2"
gem "bosh_aws_registry", "0.2.3"
gem "bosh_cli", "1.0.3"
gem "bosh_common", "0.5.1"
gem "bosh_cpi", "0.4.4"
gem "bosh_deployer", "1.1.0"
gem "bosh_openstack_cpi", "0.0.4"
gem "bosh_openstack_registry", "0.0.3"
gem "bosh_vsphere_cpi", "0.5.0"
gem "builder", "3.1.4"
gem "bundler", "1.3.5"
gem "daemons", "1.1.9"
gem "eventmachine", "1.0.0"
gem "excon", "0.16.10"
gem "fog", "1.6.0"
gem "formatador", "0.2.4"
gem "gerrit-cli", "0.0.1"
gem "highline", "1.6.15"
gem "httparty", "0.9.0"
gem "httpclient", "2.2.4"
gem "json", "1.7.5"
gem "json_pure", "1.6.7"
gem "log4r", "1.1.10"
gem "membrane", "0.0.2"
gem "mime-types", "1.19"
gem "minitest", "1.6.0"
gem "multi_json", "1.1.0"
gem "multi_xml", "0.5.1"
gem "net-scp", "1.0.4"
gem "net-ssh", "2.2.2"
gem "net-ssh-gateway", "1.1.0"
gem "netaddr", "1.5.0"
gem "nokogiri", "1.5.5"
gem "progressbar", "0.9.2"
gem "rack", "1.4.1"
gem "rack-protection", "1.2.0"
gem "rake", "0.8.7"
gem "rdoc", "2.5.8"
gem "ruby-atmos-pure", "1.0.5"
gem "ruby-hmac", "0.4.0"
gem "ruby_vim_sdk", "0.0.2"
gem "rubygems-update", "1.8.24"
gem "sequel", "3.41.0"
gem "sinatra", "1.3.3"
gem "sqlite3", "1.3.6"
gem "terminal-table", "1.4.5"
gem "thin", "1.5.0"
gem "tilt", "1.3.3"
gem "uuidtools", "2.1.3"
gem "xml-simple", "1.1.2"
gem "yajl-ruby", "1.1.0"

4.下载微 BOSH Stemcell

Shell代码


% mkdir -p ~/stemcells
% cd stemcells
% bosh public stemcells
......
To download use 'bosh download public stemcell <stemcell_name>'.
% bosh download public stemcell micro-bosh-stemcell-vsphere-0.6.4.tgz

5.创建项目目录

Shell代码


mkdir ~/deployments
cd ~/deployments
mkdir micro01

在micro01中创建文件micro_bosh.yml,内容如下: http://oldfritters.iteye.com/blog/1837379
Shell代码


bosh micro deployment micro01

6.部署一个新的micro BOSH 实例并创建一个新的持久磁盘

Shell代码


bosh micro deploy ~/stemcells/micro-bosh-stemcell-vsphere-0.6.4.tgz

查看微 BOSH 部署的状态 bosh status
列出部署 bosh micro deployments
删除微 BOSH 部署 bosh micro delete
向微 BOSH 代理发送消息 bosh micro agent ping

7.安装BOSH

Shell代码


git clone git@github.com:cloudfoundry/bosh-release.git
cd bosh-release
git checkout 9e0b649da80a563ba64229069299c57f72ab54ad

Shell代码


bosh target 10.0.0.12
bosh upload stemcell bosh-stemcell-vsphere-0.6.4.tgz

Shell代码


bosh upload release releases/bosh-11.yml

Shell代码


bosh deployment bosh.yml
bosh deploy

bosh.yml http://oldfritters.iteye.com/blog/1837382
8.安装cloud foundry(即cf)

Shell代码


bosh target 10.0.0.23 #target到你的director

Shell代码


git clone git@github.com:cloudfoundry/cf-release.git
cd cf-release
bosh upload release releases/appcloud-127.yml # use the highest number available - inspecting the files in this directory

Shell代码


bosh deployment ~/deployments/cloudfoundry.yml
bosh deploy

以下是一个cloudfoundry.yml例子 http://oldfritters.iteye.com/blog/1837384
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: