Add linux/arm to the list of server builds

This commit is contained in:
Brendan Burns
2015-11-22 19:53:45 -08:00
parent 46924670d9
commit d2dbe56820
7 changed files with 35 additions and 14 deletions

View File

@@ -1,10 +1,14 @@
.PHONY: build push
IMAGE = pause
TAG = 2.0
ARCH = amd64
IMAGE = pause
# ARCH = arm
# IMAGE = pause-arm
build:
./prepare.sh
./prepare.sh ${ARCH}
docker build -t gcr.io/google_containers/$(IMAGE):$(TAG) .
push: build

View File

@@ -17,8 +17,10 @@
set -e
set -x
ARCH=$1
# Build the binary.
go build --ldflags '-extldflags "-static" -s' pause.go
CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} godep go build -a -installsuffix cgo -ldflags '-w' ./pause.go
# Run goupx to shrink binary size.
go get github.com/pwaller/goupx