Created
August 6, 2015 22:56
-
-
Save kimsible/703e10fb5a5417959a0f to your computer and use it in GitHub Desktop.
Windows docker-compose
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/bash | |
cygpath=`cygpath -ma .` | |
b2dstatus=`boot2docker status` | |
b2dpath_shared=${cygpath/C://c} | |
if [ "$b2dstatus" != "running" ]; then | |
boot2docker up | |
eval "$(boot2docker shellinit)" | |
fi | |
boot2docker ssh 'type docker-compose >/dev/null 2>&1' || boot2docker ssh 'tce-load -wi python && curl https://bootstrap.pypa.io/get-pip.py | sudo python - && sudo pip install -U docker-compose' | |
boot2docker ssh "docker-compose -f $b2dpath_shared/docker-compose.yml $@" | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment