Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions dockerfiles/Dockerfile.cross
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ RUN apt-get update -qq && apt-get install -y -q \
parallel \
;

RUN go get github.com/mitchellh/gox && \
cp /go/bin/gox /usr/bin && \
rm -rf /go/src/* /go/pkg/* /go/bin/*

COPY dockerfiles/osx-cross.sh /tmp/
RUN /tmp/osx-cross.sh
ENV PATH /osxcross/target/bin:$PATH
Expand Down
4 changes: 0 additions & 4 deletions dockerfiles/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ RUN go get github.com/LK4D4/vndr && \
cp /go/bin/vndr /usr/bin && \
rm -rf /go/src/* /go/pkg/* /go/bin/*

RUN go get github.com/mitchellh/gox && \
cp /go/bin/gox /usr/bin && \
rm -rf /go/src/* /go/pkg/* /go/bin/*

RUN go get github.com/jteeuwen/go-bindata/go-bindata && \
cp /go/bin/go-bindata /usr/bin && \
rm -rf /go/src/* /go/pkg/* /go/bin/*
Expand Down
5 changes: 3 additions & 2 deletions scripts/build/.variables
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env bash

set -eu

VERSION=${VERSION:-"unknown-version"}
Expand All @@ -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"
10 changes: 8 additions & 2 deletions scripts/build/cross
Original file line number Diff line number Diff line change
@@ -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" \
;
19 changes: 0 additions & 19 deletions scripts/build/linux-cross

This file was deleted.