mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 01:38:10 +00:00
add option to fetch vendor dockerized
This commit is contained in:
parent
895183e503
commit
bc8fd52523
1 changed files with 7 additions and 0 deletions
7
Makefile
7
Makefile
|
|
@ -5,6 +5,7 @@ ARCH?=amd64
|
||||||
ALL_ARCH=amd64 arm arm64 ppc64le s390x
|
ALL_ARCH=amd64 arm arm64 ppc64le s390x
|
||||||
ML_PLATFORMS=linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/s390x
|
ML_PLATFORMS=linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/s390x
|
||||||
OUT_DIR?=./_output
|
OUT_DIR?=./_output
|
||||||
|
VENDOR_DOCKERIZED=0
|
||||||
|
|
||||||
VERSION?=latest
|
VERSION?=latest
|
||||||
|
|
||||||
|
|
@ -52,7 +53,13 @@ push: ./manifest-tool $(addprefix push-,$(ALL_ARCH))
|
||||||
chmod +x manifest-tool
|
chmod +x manifest-tool
|
||||||
|
|
||||||
vendor: glide.lock
|
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
|
glide install -v
|
||||||
|
endif
|
||||||
|
|
||||||
test: vendor
|
test: vendor
|
||||||
CGO_ENABLED=0 go test ./pkg/...
|
CGO_ENABLED=0 go test ./pkg/...
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue