We’ve been playing with our local Cloud Foundry installation.
After “save state” and system shutdown some settings are lost. To get our environment quickly setup for local Cloud Foundry we run a script:
source ~/startcf.sh
The contents of the script file is based on the posts on my blog. This sets up the bosh and cf command.
export BOSH_CLIENT=admin export BOSH_CLIENT_SECRET=`bosh int ~/deployments/vbox/creds.yml --path /admin_password` export BOSH_ENVIRONMENT=192.168.50.6 export CF_ADMIN_PASSWORD=`bosh interpolate --path /cf_admin_password ~/workspace/cf-deployment/deployment-vars.yml` export SYSTEM_DOMAIN=bosh-lite.com sudo route add -net 10.244.0.0/16 192.168.50.6 # Mac OS X
It’s the first command we run in a new terminal window.