Last active
January 3, 2020 18:18
-
-
Save chrodriguez/9d1939d977fdf33bab0228f46f7a2f37 to your computer and use it in GitHub Desktop.
Bootways bootstrap installer
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 | |
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