Skip to content

Instantly share code, notes, and snippets.

@pburkholder
Last active June 2, 2017 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pburkholder/ed9a35a0b0fc50f75c40cb86802f56c4 to your computer and use it in GitHub Desktop.
Save pburkholder/ed9a35a0b0fc50f75c40cb86802f56c4 to your computer and use it in GitHub Desktop.
Concourse jumpbox script
#!/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