更新时间:2023-02-23 17:39:14
* *更新**
可能最简单的方法是PCF开发 https://pivotal.io/pcf-dev BOSH Lite提供了更多选择,但是对于大多数尝试CF的人,我建议PCF开发人员。
** UPDATE ** Probably the easiest way is PCF Dev https://pivotal.io/pcf-dev BOSH Lite gives you more options, but for most people just trying out CF I would recommend PCF Dev.
最简单的方法是使用BOSH Lite部署CF。您可能需要16gb的内存。
Easiest way is to deploy CF using BOSH Lite. You will probably need 16gb of ram.
安装Vagrant
gem install vagrant
下载BOSH Lite
git clone https://github.com/cloudfoundry/bosh-lite
启动BOSH Lite
cd bosh-lite
vagrant up --provider=virtualbox
Target Bosh精简版
bosh target 192.168.50.4 lite
用户名/密码: admin / admin
添加所需的路线
bin/add-route
下载干细胞
wget https://s3.amazonaws.com/bosh-warden-stemcells/bosh-stemcell-3147-warden-boshlite-ubuntu-trusty-go_agent.tgz
安装BOSH CLI
gem install bosh_cli --no-ri --no-rdoc
上传BOSH Lite CF使用的干细胞
bosh upload stemcell bosh-stemcell-3147-warden-boshlite-ubuntu-trusty-go_agent.tgz
下载CF
git clone https://github.com/cloudfoundry/cf-release.git --recursive
生成CF BOSH Lite清单
scripts/generate-bosh-lite-dev-manifest
创建,上传和部署发行版
bosh create release --force && bosh upload release && bosh -n deploy
^^^这需要一段时间^^^
^^^ This will take awhile ^^^
安装CF CLI
请参阅此处的说明:
https://github.com/cloudfoundry/cli
登录到CF
cf login -a https://api.bosh-lite.com --skip-ssl-validation -u admin -p admin
创建组织
cf create-org org
创建空间
cf create-space space -o org
目标组织和空间
cf target -o org -s space
推送应用
cf push
应该这样做!