Skip to content

Instantly share code, notes, and snippets.

@chrodriguez
Last active January 3, 2020 18:18
Show Gist options
  • Save chrodriguez/9d1939d977fdf33bab0228f46f7a2f37 to your computer and use it in GitHub Desktop.
Save chrodriguez/9d1939d977fdf33bab0228f46f7a2f37 to your computer and use it in GitHub Desktop.
Bootways bootstrap installer
#!/bin/bash
usage() {
echo $0 DIRECTORY
exit 1
}
[ "$#" -ne 1 ] && usage
echo Installing bootways...
git clone -q --recurse-submodules [email protected]:mikroways/k8s/bootways.git "$1" || \
( echo Error downloading bootways! && exit 1 )
echo Preparing directory:
pushd "$1" && git remote rm origin && popd
echo "Done! Time to read README. If requirements are met run the following commands"
echo
echo "cd $1 && direnv allow"
echo "pip install -r requirements.txt && \\"
echo " ansible-galaxy install -r requirements.yml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment