Files
docker-docs/script/build
Nathan LeClaire b350a99bec Allow optional override of os and arch in build
With this change machine will still cross-compile for all supported OSes
/ archs by default, but allows user to customize args to the build
script.

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2014-12-15 14:12:17 -08:00

13 lines
266 B
Bash
Executable File

#!/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_ARCH_ARG[@]}"