mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add new "cross" bundle to cross-compile the Docker client for other platforms (currently just 32-bit and 64-bit OS X)
This commit is contained in:
parent
e829d5b6d2
commit
62a81370ff
5 changed files with 36 additions and 2 deletions
13
hack/make/cross
Normal file
13
hack/make/cross
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
DEST=$1
|
||||
|
||||
for platform in $DOCKER_CROSSPLATFORMS; do
|
||||
(
|
||||
export GOOS=${platform%/*}
|
||||
export GOARCH=${platform##*/}
|
||||
export VERSION="$GOOS-$GOARCH-$VERSION" # for a nice filename
|
||||
export LDFLAGS_STATIC="" # we just need a simple client for these platforms (TODO this might change someday)
|
||||
source "$(dirname "$BASH_SOURCE")/binary"
|
||||
)
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue