mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 13:11:30 +00: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:
@@ -40,6 +40,7 @@ DEFAULT_BUNDLES=(
|
||||
dyntest
|
||||
dyntest-integration
|
||||
cover
|
||||
cross
|
||||
tgz
|
||||
ubuntu
|
||||
)
|
||||
|
||||
@@ -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
|
||||
@@ -47,6 +47,7 @@ cd /go/src/github.com/dotcloud/docker
|
||||
|
||||
RELEASE_BUNDLES=(
|
||||
binary
|
||||
cross
|
||||
tgz
|
||||
ubuntu
|
||||
)
|
||||
@@ -233,6 +234,16 @@ EOF
|
||||
fi
|
||||
}
|
||||
|
||||
# Upload a cross-compiled client binaries to S3
|
||||
release_cross() {
|
||||
[ -e bundles/$VERSION/cross ] || {
|
||||
echo >&2 './hack/make.sh must be run before release_binary'
|
||||
exit 1
|
||||
}
|
||||
|
||||
# TODO find out from @shykes what URLs he'd like to use here
|
||||
}
|
||||
|
||||
# Upload the index script
|
||||
release_index() {
|
||||
sed "s,https://get.docker.io/,$(s3_url)/," hack/install.sh | write_to_s3 s3://$BUCKET/index
|
||||
@@ -247,6 +258,7 @@ release_test() {
|
||||
main() {
|
||||
setup_s3
|
||||
release_binary
|
||||
release_cross
|
||||
release_tgz
|
||||
release_ubuntu
|
||||
release_index
|
||||
|
||||
Reference in New Issue
Block a user