Last active
June 2, 2017 16:45
-
-
Save pburkholder/ed9a35a0b0fc50f75c40cb86802f56c4 to your computer and use it in GitHub Desktop.
Concourse jumpbox script
This file contains 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 | |
#set -e | |
if [ "$#" -ne 1 ]; then | |
echo | |
echo "Usage:" | |
echo " jumpbox <environment>" | |
exit 1 | |
fi | |
target="fr" | |
env=$1 | |
build="$(script -q /dev/stderr fly -t $target tj -j "jumpbox/container-bosh-$env" -w | | |
grep started | cut -d'#' -f2 | tr -d '\r \n')" | |
exec fly -t $target i -j "jumpbox/container-bosh-$env" -s jumpbox -b $build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment