Forked from eyasuyuki/install_python_to_boot2docker.sh
Created
March 5, 2017 21:00
-
-
Save mfyuce/f6fa798cb8fbb8add04a712e7dc5676e to your computer and use it in GitHub Desktop.
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/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