1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

Remove binaries in build after building image

This will bail before deleting the binaries if it can't connect to a
Docker host. Sometimes I build machine binaries when I haven't got a
machine and then it removes the machine binaries and then I can't
use machine to create a machine and then the universe implodes. :(

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
Ben Firshman
2015-02-25 18:14:38 +00:00
parent 502945f577
commit 1c8eb08e1e

View File

@@ -13,6 +13,6 @@ else
OS_ARCH_ARG=($2)
fi
rm -f docker-machine*
docker build -t docker-machine .
rm -f docker-machine*
exec docker run --rm -v `pwd`:/go/src/github.com/docker/machine docker-machine gox "${OS_PLATFORM_ARG[@]}" "${OS_ARCH_ARG[@]}" -output="docker-machine_{{.OS}}-{{.Arch}}"