Remove referenced to developing on the host, we shouldn't support it. Move script/validate to scripts/validate to be consistent. Set the default target to be binary instead of clean. Signed-off-by: Daniel Nephin <dnephin@docker.com>
23 lines
404 B
Bash
Executable File
23 lines
404 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Build static linux binary for multiple architectures
|
|
#
|
|
|
|
set -eu -o pipefail
|
|
|
|
source ./scripts/build/.variables
|
|
|
|
CROSS_OSARCH="linux/amd64 linux/arm"
|
|
|
|
# Compile is broken
|
|
# linux/ppc64le
|
|
|
|
# Not yet supported by gox
|
|
# linux/s390x
|
|
|
|
echo "Building all linux binaries"
|
|
gox -output build/docker-{{.OS}}-{{.Arch}} \
|
|
-osarch "${CROSS_OSARCH}" \
|
|
--ldflags "${LDFLAGS}" \
|
|
"${SOURCE}"
|