Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
Added a simple makefile for iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
jtilander committed Feb 16, 2017
1 parent bd5c1c5 commit 7bdd313
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7bdd313

Please sign in to comment.