mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 09:47:54 +00:00
DirectXMan12/k8s-prometheus-adapter/issues/199
https://github.com/DirectXMan12/k8s-prometheus-adapter/issues/199#issue-445673744
This commit is contained in:
parent
9df21aa545
commit
213b2e94c1
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
|
@ -2,6 +2,7 @@ REGISTRY?=directxman12
|
|||
IMAGE?=k8s-prometheus-adapter
|
||||
TEMP_DIR:=$(shell mktemp -d)
|
||||
ARCH?=amd64
|
||||
GOOS=linux
|
||||
ALL_ARCH=amd64 arm arm64 ppc64le s390x
|
||||
ML_PLATFORMS=linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/s390x
|
||||
OUT_DIR?=./_output
|
||||
|
|
@ -32,7 +33,7 @@ all: $(OUT_DIR)/$(ARCH)/adapter
|
|||
|
||||
src_deps=$(shell find pkg cmd -type f -name "*.go")
|
||||
$(OUT_DIR)/%/adapter: $(src_deps)
|
||||
CGO_ENABLED=0 GOARCH=$* go build -tags netgo -o $(OUT_DIR)/$*/adapter github.com/directxman12/k8s-prometheus-adapter/cmd/adapter
|
||||
CGO_ENABLED=0 GOARCH=$* GOOS=$(GOOS) go build -tags netgo -o $(OUT_DIR)/$*/adapter github.com/directxman12/k8s-prometheus-adapter/cmd/adapter
|
||||
|
||||
docker-build:
|
||||
cp deploy/Dockerfile $(TEMP_DIR)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue