Skip to content

Instantly share code, notes, and snippets.

@karampok
Created May 24, 2017 07:06
Show Gist options
  • Save karampok/69195aeb1867dd17477a9f456b9701a0 to your computer and use it in GitHub Desktop.
Save karampok/69195aeb1867dd17477a9f456b9701a0 to your computer and use it in GitHub Desktop.
bosh_concourse alias/functions
# Aliases
alias gfd='bosh create release --force && bosh -n upload release && bosh -n deploy'
alias bsoh='bosh'
alias bsho='bosh'
alias box='bosh'
# Restart bosh-lite and upload the stemcell
function blup() {
stemcell=$1
pushd ~/workspace/bosh-lite
git pull --rebase
vagrant destroy -f
vagrant up
sudo ./bin/add-route
bosh target 192.168.50.4 lite
if [ ! -z $stemcell ] && [ -f $stemcell ]; then
bosh upload stemcell $stemcell
fi
vagrant ssh -c 'sudo modprobe br_netfilter'
popd
}
# Recreate concourse-lite VM
function clup() {
pushd ~/workspace/concourse-lite
vagrant destroy -f
vagrant up
popd
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment