Skip to content

Instantly share code, notes, and snippets.

@kimsible
Created August 6, 2015 22:56
Show Gist options
  • Save kimsible/703e10fb5a5417959a0f to your computer and use it in GitHub Desktop.
Save kimsible/703e10fb5a5417959a0f to your computer and use it in GitHub Desktop.
Windows docker-compose
#!/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