Merge pull request #106 from nathanleclaire/modify_osarch

Allow optional override of OS and arch in build (speed up compilation)
This commit is contained in:
Ben Firshman 2014-12-16 01:50:22 +00:00
commit f43a0f2a9a
1 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,12 @@
#!/bin/sh
set -e
if [ -z "$1" ]; then
OS_ARCH_ARG=(-os="darwin linux windows")
else
OS_ARCH_ARG=($1)
fi
rm -f machine_*
docker build -t docker-machine .
exec docker run --rm -v `pwd`:/go/src/github.com/docker/machine docker-machine gox -os="darwin linux windows"
exec docker run --rm -v `pwd`:/go/src/github.com/docker/machine docker-machine gox "${OS_ARCH_ARG[@]}"