Created
February 5, 2014 18:55
-
-
Save drnic/8830587 to your computer and use it in GitHub Desktop.
rebuild bosh-lite including CF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -x | |
| set -e | |
| export CF_VERSION=v154 | |
| export CF_RELEASE_DIR=${CF_RELEASE_DIR:-"$HOME/Projects/bosh_releases/cf-release"} | |
| export TEST_APP_DIR=${TEST_APP_DIR:-"$HOME/Sites/cloudfoundry_apps/service-binding-proxy"} | |
| export BROKER_DIR=${BROKER_DIR:-"$HOME/Sites/servaas"} | |
| cur=$(pwd) | |
| vagrant destroy -f | |
| # vagrant up --provider vmware_fusion | |
| vagrant up | |
| yes admin | bosh target https://192.168.50.4:25555 vagrant | |
| echo "Restarting director to avoid https://github.com/cloudfoundry/bundle exec bosh-lite/issues/82" | |
| vagrant ssh -c "ps ax | grep 'director.yml' | head -n 1 | awk '{print \$1}' | xargs sudo kill" | |
| cd ~/Projects/bosh_releases/finals | |
| ./upload.sh warden | |
| cd $CF_RELEASE_DIR | |
| git checkout $CF_VERSION | |
| cd $cur | |
| scripts/make_manifest_spiff | |
| # Assume update: section at the end; parallelize deploy! | |
| echo " serial: false" >> manifests/cf-manifest.yml | |
| bosh -n deploy | |
| gcf api https://api.10.244.0.34.xip.io | |
| gcf login -u admin -p admin | |
| gcf create-org me | |
| gcf target -o me | |
| gcf create-space test | |
| gcf target -s test | |
| cd $TEST_APP_DIR | |
| name=$(basename $TEST_APP_DIR) | |
| echo $name | |
| gcf push $name | |
| cd $cur | |
| gcf target | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| DIRECTOR_CPI=$1 | |
| if [[ "${DIRECTOR_CPI}X" == "X" ]]; then | |
| BOSH_STATUS=$(bosh status) | |
| DIRECTOR_CPI=$(echo "$BOSH_STATUS" | grep CPI | awk '{print $2}') | |
| fi | |
| current_dir=$(pwd) | |
| releases_dir=$(dirname $0) | |
| cd $releases_dir | |
| bosh upload release cf-154.tgz | |
| bosh upload release etcd-3.tgz | |
| bosh upload release redis-2.tgz | |
| bosh upload release datastax-cassandra-1.tgz | |
| for stemcell in $(ls *bosh-stemcell*$DIRECTOR_CPI*tgz) | |
| do | |
| bosh upload stemcell $stemcell | |
| done | |
| cd $current_dir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment