mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-23 12:30:46 +01:00
Fix docker build (#1016)
Fix override of make docker target to include new `DOCKER_REPO` variable pattern. Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
981de58fad
commit
ca2fa4684b
4
Makefile
4
Makefile
@ -110,12 +110,12 @@ ifeq ($(MACH), ppc64le)
|
||||
$(eval DOCKERFILE=Dockerfile.ppc64le)
|
||||
endif
|
||||
@echo ">> building docker image from $(DOCKERFILE)"
|
||||
@docker build --file $(DOCKERFILE) -t "$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)" .
|
||||
@docker build --file $(DOCKERFILE) -t "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)" .
|
||||
|
||||
.PHONY: test-docker
|
||||
test-docker:
|
||||
@echo ">> testing docker image"
|
||||
./test_image.sh "$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)" 9100
|
||||
./test_image.sh "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)" 9100
|
||||
|
||||
.PHONY: promtool $(FIRST_GOPATH)/bin/promtool
|
||||
$(FIRST_GOPATH)/bin/promtool promtool:
|
||||
|
Loading…
Reference in New Issue
Block a user