From 7bdd31325e9afc7f563318cfa860468814f18906 Mon Sep 17 00:00:00 2001 From: Jim Tilander Date: Wed, 15 Feb 2017 22:43:27 -0800 Subject: [PATCH] Added a simple makefile for iteration --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..05fea70 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +IMAGENAME?=lovoo/jenkins_exporter +TAG?=latest +JENKINS_SERVER?=https://myjenkins + +debug: image + docker run --rm -p 9118:9118 -e DEBUG=1 -e JENKINS_SERVER=$(JENKINS_SERVER) -e VIRTUAL_PORT=9118 $(IMAGENAME):$(TAG) + +image: + docker build -t $(IMAGENAME):$(TAG) . + +push: image + docker push $(IMAGENAME):$(TAG) + + +.PHONY: image push debug