-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new "cross" bundle to cross-compile the Docker client for other p…
…latforms (currently just 32-bit and 64-bit OS X)
- Loading branch information
Showing
5 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ DEFAULT_BUNDLES=( | |
dyntest | ||
dyntest-integration | ||
cover | ||
cross | ||
tgz | ||
ubuntu | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters