Skip to content

Instantly share code, notes, and snippets.

@jherrlin
Created April 16, 2016 13:27
Show Gist options
  • Save jherrlin/37a587668b50c2ddc97da4886267c0b5 to your computer and use it in GitHub Desktop.
Save jherrlin/37a587668b50c2ddc97da4886267c0b5 to your computer and use it in GitHub Desktop.
function setup {
echo "Removing test container..."
rm -rf containers
echo "Git clone owtf valhalla containers"
git clone git@github.com:Kodkollektivet/owtf-valhalla-containers.git containers
printf "Creating virtual environment...\n\n"
virtualenv --python=/usr/bin/python venv
source venv/bin/activate
pip install -q --log-file log/pip-error.log -r requirements.txt
printf "\n'Taking care of things for you...' - Microsoft\n"
python $MANAGE_PY makemigrations
python $MANAGE_PY migrate
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment