Created
May 24, 2017 07:06
-
-
Save karampok/69195aeb1867dd17477a9f456b9701a0 to your computer and use it in GitHub Desktop.
bosh_concourse alias/functions
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
# 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