Prerequisites:
Installation of Vagrant for Windows
Installation of VirtualBox for Windows
-
After you've installed Vagrant and VirtualBox you start by cloning https://github.com/cloudfoundry/bosh-lite
git clone https://github.com/cloudfoundry/bosh-lite
- Now go into your
bosh-lite
directory and start Vagrantvagrant up --provider=virtualbox
- Since the bosh-cli doesn't run on Windows we will manage the bosh-lite instance inside the created vm. For that we login into the vm via ssh
vagrant ssh
- Now we need to download a bosh stemcell with the bosh cli tool
bosh download public stemcell bosh-stemcell-389-warden-boshlite-ubuntu-trusty-go_agent.tgz
- After it finished you need to upload the stemcell to your bosh instance
bosh upload stemcell bosh-stemcell-389-warden-boshlite-ubuntu-trusty-go_agent.tgz
- Now we need to clone the CloudFoundry repository. Before we can do this we need to install git
sudo apt-get install git
- Clone the CloudFoundry repository https://github.com/cloudfoundry/cf-release
git clone https://github.com/cloudfoundry/cf-release
- We will use the 1.93 release of CloudFoundry.
git checkout tags/v193
./update
to fetch all references - Upload the release to bosh
bosh upload release releases/cf-193.yml
- To use the tool spiff for creating the bosh manifest file we need to install go
wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.4.2.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
export GO_PATH=$HOME/go
mkdir $HOME/go
- Install spiff
go get -v github.com/cloudfoundry-incubator/spiff
- Build manifest
Execute inside your
bosh-lite
foldersudo ./bin/make_manifest_spiff
- Choose the deployment
bosh deployment manifests/cf-manifest.yml
- Start deployment of CloudFoundry inside bosh
bosh deploy
- Install the CloudFoundry CLI for Windows on your Windows machine and access your installed CloudFoundry instance