mirror of https://github.com/docker/docs.git
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:
commit
f43a0f2a9a
|
@ -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[@]}"
|
||||
|
|
Loading…
Reference in New Issue