mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
added a single target for building docker image
Signed-off-by: Kartikay <kartikay_2101ce32@iitp.ac.in>
This commit is contained in:
parent
c006c57efc
commit
0e80d499e5
15
Makefile
15
Makefile
|
@ -152,3 +152,18 @@ update-all-go-deps:
|
||||||
$(GO) get -d $$m; \
|
$(GO) get -d $$m; \
|
||||||
done
|
done
|
||||||
@cd ./documentation/examples/remote_storage/ && $(GO) mod tidy
|
@cd ./documentation/examples/remote_storage/ && $(GO) mod tidy
|
||||||
|
|
||||||
|
.PHONY: docker-curr-arch
|
||||||
|
docker-curr-arch:
|
||||||
|
@echo ">> Building promu and crossbuilding"
|
||||||
|
$(MAKE) promu
|
||||||
|
$(MAKE) npm_licenses
|
||||||
|
@echo ">> Running promu crossbuild"
|
||||||
|
promu crossbuild -p $(shell go env GOHOSTOS)/$(shell go env GOHOSTARCH)
|
||||||
|
@echo ">> Building promu and crossbuilding"
|
||||||
|
$(MAKE) promu
|
||||||
|
docker build -t "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$(shell go env GOHOSTARCH):$(SANITIZED_DOCKER_IMAGE_TAG)" \
|
||||||
|
-f $(DOCKERFILE_PATH) \
|
||||||
|
--build-arg ARCH="$(shell go env GOHOSTARCH)" \
|
||||||
|
--build-arg OS="$(shell go env GOHOSTOS)" \
|
||||||
|
$(DOCKERBUILD_CONTEXT)
|
Loading…
Reference in a new issue