From bc8fd52523c2354f93392c4d672e3c163b10cc1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20K=C3=A4ldstr=C3=B6m?= Date: Thu, 6 Jul 2017 14:31:32 +0300 Subject: [PATCH] add option to fetch vendor dockerized --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 3ec912db..c0039a6b 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ ARCH?=amd64 ALL_ARCH=amd64 arm arm64 ppc64le s390x ML_PLATFORMS=linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/s390x OUT_DIR?=./_output +VENDOR_DOCKERIZED=0 VERSION?=latest @@ -52,7 +53,13 @@ push: ./manifest-tool $(addprefix push-,$(ALL_ARCH)) chmod +x manifest-tool vendor: glide.lock +ifeq ($(VENDOR_DOCKERIZED),1) + docker run -it -v $(shell pwd):/go/src/github.com/directxman12/k8s-prometheus-adapter -w /go/src/github.com/directxman12/k8s-prometheus-adapter golang:1.8 /bin/bash -c "\ + curl https://glide.sh/get | sh \ + && glide install -v" +else glide install -v +endif test: vendor CGO_ENABLED=0 go test ./pkg/...