Skip to content

Instantly share code, notes, and snippets.

@ConnorDoyle
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ConnorDoyle/7af3c015382d3c555d07 to your computer and use it in GitHub Desktop.
Save ConnorDoyle/7af3c015382d3c555d07 to your computer and use it in GitHub Desktop.
DCOS CLI Installer
#!/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 git@github.com: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