Merge pull request #17459 from brahmaroutu/Power_Z_CI

Build and test Docker on IBM Power and Z using gccgo. Enable CI on Po…
Upstream-commit: 249b3a9479048bcec8da0666c2e224dddcfc3de8
Component: engine
This commit is contained in:
Michael Crosby
2015-11-19 15:50:07 -08:00
12 changed files with 204 additions and 14 deletions
@@ -0,0 +1,9 @@
for image in `docker images | awk '{print $1}'`; do
if ( [ -z "${image##$IMAGEREPO/busybox}" ] ); then
docker tag $image busybox:latest
docker rmi $image
elif ( [ -z "${image##$IMAGEREPO/hello-world}" ] ); then
docker tag $image:frozen hello-world:frozen
docker rmi $image:frozen
fi
done
@@ -2,4 +2,5 @@
bundle .ensure-emptyfs
bundle .ensure-frozen-images
bundle .ensure-images
bundle .ensure-httpserver
+2
View File
@@ -10,6 +10,7 @@ source "${MAKEDIR}/.go-autogen"
if [[ "${BUILDFLAGS[@]}" =~ 'netgo ' ]]; then
EXTLDFLAGS_STATIC+=' -lnetgo'
fi
# gccgo require explicit flag -pthread to allow goroutines to work.
go build -compiler=gccgo \
-o "$DEST/$BINARY_FULLNAME" \
"${BUILDFLAGS[@]}" \
@@ -18,6 +19,7 @@ go build -compiler=gccgo \
$EXTLDFLAGS_STATIC
-Wl,--no-export-dynamic
-ldl
-pthread
" \
./docker