Skip to content

Instantly share code, notes, and snippets.

@jcooklin
Last active August 29, 2015 14:14
Show Gist options
  • Save jcooklin/bb59cb935d1d028523cf to your computer and use it in GitHub Desktop.
Save jcooklin/bb59cb935d1d028523cf to your computer and use it in GitHub Desktop.

CF lab install

Below is a stream of notes taken when installing CF using bosh-lite on a fresh Ubuntu 14.04 build.

sudo apt-get update sudo apt-get dist-upgrade

install bosh deps

sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties unzip

install bosh cli

sudo gem install bosh_cli

clone bosh-lite

git clone https://github.com/cloudfoundry/bosh-lite

download latest vagrant deb

sudo dpkg -i /tmp/vagrant…deb

install virtualbox

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian trusty contrib" >> /etc/apt/sources.list.d/virtualbox.list’
sudo apt-get update
sudo apt-get install virtualbox

Start vagrant and target it with bosh TIP: update Vagrant file to share /Vagrant and use 16G memory

cd bosh-lite
vagrant up —provider=virtualbox
bosh target 192.168.50.4 lite
add routes
bin/add-route

deploy cf Download latest spiff from here and copy to /usr/local/bin

cd ~
git clone https://github.com/cloudfoundry/cf-release
cd bosh-lite
./bin/provision_cf

install golang

apt-get install -y golang

download and run acceptance tests

cd ~
mkdir -p ~/go
export GOPATH=~/go
cat > integration_config.json <<EOF
{
  "api": "api.10.244.0.34.xip.io",
  "admin_user": "admin",
  "admin_password": "admin",
  "apps_domain": "10.244.0.34.xip.io”,
  “skip_ssl_validation”: true
}
EOF
export CONFIG=$PWD/integration_config.json
curl -Lqs "https://cli.run.pivotal.io/stable?release=linux64-binary&source=github" | tar -C /tmp -xvzf -
sudo mv /tmp/cf /usr/local/bin
go get github.com/cloudfoundry/cf-acceptance-tests
cd ~/go/src/github.com/cloudfoundry/cf-acceptance-tests
./bin/test

install cf-services-contrib-release

cd 
git clone https://github.com/cloudfoundry-community/cf-services-contrib-release
bosh upload release https://cf-contrib.s3.amazonaws.com/boshrelease-cf-services-contrib-6.tgz
bosh -n deploy
cf create-service-auth-token rabbitmq core <TOKEN> //authorize service look yml generated in temp for it

create rabbitmq service cf create-service rabbitmq default my-rabbit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment