Skip to content

Instantly share code, notes, and snippets.

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 mfyuce/f6fa798cb8fbb8add04a712e7dc5676e to your computer and use it in GitHub Desktop.
Save mfyuce/f6fa798cb8fbb8add04a712e7dc5676e to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ -z "$1" ]; then
echo "$0 <vm name>"
exit -1
fi
docker-machine ssh $1 -- tce-load -wi python.tcz
docker-machine ssh $1 -- sudo ln -s /usr/local/bin/python /usr/bin/python
docker-machine ssh $1 -- 'curl https://bootstrap.pypa.io/get-pip.py | sudo python -'
docker-machine ssh $1 -- sudo pip install docker-py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment