*: Add kube-prometheus generate make target to generate stage

This commit is contained in:
Frederic Branczyk
2017-12-22 16:05:42 +01:00
parent a9fedc6343
commit 9130536097
2 changed files with 6 additions and 12 deletions

View File

@@ -1,6 +0,0 @@
FROM python:3.6-slim
RUN apt-get update -y && apt-get install -y git
RUN pip3 install virtualenv
ENTRYPOINT ["/bin/bash"]

View File

@@ -1,11 +1,11 @@
.PHONY: image
IMAGE := coreos/generate-prometheus-operator-manifests
image:
docker build -f ../../scripts/jsonnet/Dockerfile -t po-jsonnet ../../
image: Dockerfile
docker build -t $(IMAGE) .
BUILDER := docker run --rm -it --workdir /data -v ${PWD}:/data $(IMAGE) ./hack/scripts/generate-manifests.sh
generate: image
@echo ">> Compiling assets and generating Kubernetes manifests"
$(BUILDER)
docker run --rm -v `pwd`:/go/src/github.com/coreos/prometheus-operator/contrib/kube-prometheus --workdir /go/src/github.com/coreos/prometheus-operator/contrib/kube-prometheus po-jsonnet make generate-raw
generate-raw:
./hack/scripts/generate-manifests.sh