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
Dieser Kommentar wurde vom Autor entfernt.
AntwortenLöschenhi
AntwortenLöschengo get -v github.com/cloudfoundry-incubator/spiff gives an error
../../go/src/github.com/cloudfoundry-incubator/spiff/yaml/node.go:23: cannot use AnnotatedNode literal (type AnnotatedNode) as type Node in return argument:
AnnotatedNode does not implement Node (wrong type for MarshalYAML method)
have MarshalYAML() (string, interface {})
want MarshalYAML() (string, interface {}, error)
../../go/src/github.com/cloudfoundry-incubator/spiff/yaml/parser.go:49: cannot use AnnotatedNode literal (type AnnotatedNode) as type Node in return argument:
AnnotatedNode does not implement Node (wrong type for MarshalYAML method)
have MarshalYAML() (string, interface {})
want MarshalYAML() (string, interface {}, error)
../../go/src/github.com/cloudfoundry-incubator/spiff/yaml/parser.go:63: cannot use AnnotatedNode literal (type AnnotatedNode) as type Node in return argument:
AnnotatedNode does not implement Node (wrong type for MarshalYAML method)
have MarshalYAML() (string, interface {})
want MarshalYAML() (string, interface {}, error)
../../go/src/github.com/cloudfoundry-incubator/spiff/yaml/parser.go:66: cannot use AnnotatedNode literal (type AnnotatedNode) as type Node in return argument:
AnnotatedNode does not implement Node (wrong type for MarshalYAML method)
have MarshalYAML() (string, interface {})
want MarshalYAML() (string, interface {}, error)
Hi,
AntwortenLöschenfortunately the spiff binaries have been made available at
https://github.com/cloudfoundry-incubator/spiff/releases
so there is no need to install golang and compile spiff.
Regards
Markus
recommended
AntwortenLöschenvery useful blog to learner so happy to be part in this blog. Thank you
AntwortenLöschenPivotal cloud Foundry Course
thanks for sharing the post.
AntwortenLöschenFull Stack Training in Chennai | Certification | Online Training Course | Full Stack Training in Bangalore | Certification | Online Training Course | Full Stack Training in Hyderabad | Certification | Online Training Course | Full Stack Training in Pune | Certification | Online Training Course | Full Stack Training | Certification | Full Stack Online Training Course