Last active
August 29, 2015 14:15
-
-
Save ConnorDoyle/7af3c015382d3c555d07 to your computer and use it in GitHub Desktop.
DCOS CLI 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 | |
set -o errexit -o pipefail | |
BUILD_DIR='/tmp/dcos-cli/build' | |
echo "Setting up build directory..." | |
echo "" | |
mkdir -p $BUILD_DIR | |
rm -rf $BUILD_DIR/* | |
cd $BUILD_DIR | |
echo "Retrieving latest source code..." | |
echo "" | |
git clone [email protected]:mesosphere/dcos-cli | |
pushd dcos-cli | |
echo "Setting up virtualenv..." | |
echo "" | |
make env | |
source env/bin/activate | |
pip install --upgrade pip | |
pip install wheel | |
echo "Building packages..." | |
echo "" | |
make packages | |
deactivate | |
tree dist | |
echo "Installing DCOS CLI from wheel..." | |
echo "" | |
pip install dist/*.whl | |
popd | |
echo "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment