Skip to content

Instantly share code, notes, and snippets.

@eyasuyuki
Created July 1, 2016 05:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save eyasuyuki/95740e8228a5319198117925e2dd3ced to your computer and use it in GitHub Desktop.
Save eyasuyuki/95740e8228a5319198117925e2dd3ced 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