Remove gox, add support for s390x
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eu
|
||||
|
||||
VERSION=${VERSION:-"unknown-version"}
|
||||
@ -14,5 +13,7 @@ export LDFLAGS="\
|
||||
${LDFLAGS:-} \
|
||||
"
|
||||
|
||||
export TARGET="build/docker-$(go env GOHOSTOS)-$(go env GOHOSTARCH)"
|
||||
GOOS="${GOOS:-$(go env GOHOSTOS)}"
|
||||
GOARCH="${GOARCH:-$(go env GOHOSTARCH)}"
|
||||
export TARGET="build/docker-$GOOS-$GOARCH"
|
||||
export SOURCE="github.com/docker/cli/cmd/docker"
|
||||
|
||||
@ -1,12 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Build a binary for all supported platforms
|
||||
#
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
BUILDDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
echo "Building all binaries"
|
||||
echo "Building binaries for all platforms"
|
||||
SHELL=/bin/bash parallel ::: \
|
||||
"$BUILDDIR/linux-cross" \
|
||||
"$BUILDDIR/windows" \
|
||||
"$BUILDDIR/osx" \
|
||||
"GOOS=linux GOARCH=amd64 $BUILDDIR/binary" \
|
||||
"GOOS=linux GOARCH=arm $BUILDDIR/binary" \
|
||||
"GOOS=linux GOARCH=ppc64le $BUILDDIR/binary" \
|
||||
"GOOS=linux GOARCH=s390x $BUILDDIR/binary" \
|
||||
;
|
||||
|
||||
@ -1,19 +0,0 @@
|
||||
#!/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 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}"
|
||||
Reference in New Issue
Block a user