Update go dependencies

This commit is contained in:
Manuel de Brito Fontes 2017-08-16 09:09:05 -03:00
parent 6438c9f6fe
commit baf9cc47bd
53 changed files with 2802 additions and 374 deletions

View file

@ -20,20 +20,14 @@
all: push
TAG=1.3
TAG=1.4
PREFIX?=gcr.io/google_containers/defaultbackend
ARCH?=amd64
GOLANG_VERSION=1.7
TEMP_DIR:=$(shell mktemp -d)
server: server.go
CGO_ENABLED=0 GOOS=linux GOARCH=$(ARCH) GOARM=6 go build -a -installsuffix cgo -ldflags '-w -s' -o server
container:
# Compile the binary inside a container for reliable builds
docker pull golang:$(GOLANG_VERSION)
docker run --rm -it -v $(PWD)/vendor:/go/src -v $(PWD):/build golang:$(GOLANG_VERSION) /bin/bash -c "make -C /build server ARCH=$(ARCH)"
container: server
docker build --pull -t $(PREFIX)-$(ARCH):$(TAG) .
push: container