From 5356ef095de6b67f2eafa8adc38c9cff5ac8d2dc Mon Sep 17 00:00:00 2001 From: Tom Denham Date: Fri, 9 Jun 2017 11:39:02 -0700 Subject: [PATCH] Makefile: Smaller flanneld binary Use Go 1.8.x Strip the binary Improvement is ~50MB -> ~30MB --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a83a8213fc..4fe3b8fcc3 100644 --- a/Makefile +++ b/Makefile @@ -38,12 +38,12 @@ endif GOARM=7 # List images with gcloud alpha container images list-tags gcr.io/google_containers/kube-cross -KUBE_CROSS_TAG=v1.7.5-3 +KUBE_CROSS_TAG=v1.8.3-1 IPTABLES_VERSION=1.4.21 dist/flanneld: $(shell find . -type f -name '*.go') go build -o dist/flanneld \ - -ldflags "-X github.com/coreos/flannel/version.Version=$(TAG)" + -ldflags "-s -w -X github.com/coreos/flannel/version.Version=$(TAG)" test: license-check gofmt go test -cover $(TEST_PACKAGES_EXPANDED)