From 331a92281b8cc6f18fd5a4b261ba9afa4693e2dd Mon Sep 17 00:00:00 2001 From: emile Date: Wed, 16 Sep 2015 18:07:58 +0200 Subject: [PATCH] Correct bad docker image name if REPO contains uppercase --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 135513585..f2a4fa2bc 100644 --- a/Makefile +++ b/Makefile @@ -10,10 +10,13 @@ TRAEFIK_MOUNT := $(if $(BIND_DIR),-v "$(CURDIR)/$(BIND_DIR):/go/src/github.com/e GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null) TRAEFIK_DEV_IMAGE := traefik-dev$(if $(GIT_BRANCH),:$(GIT_BRANCH)) -TRAEFIK_IMAGE := $(if $(REPO),$(REPO),"emilevauge/traefik") +REPONAME := $(shell echo $(REPO) | tr '[:upper:]' '[:lower:]') +TRAEFIK_IMAGE := $(if $(REPONAME),$(REPONAME),"emilevauge/traefik") DOCKER_RUN_TRAEFIK := docker run $(if $(CIRCLECI),,--rm) -it $(TRAEFIK_ENVS) $(TRAEFIK_MOUNT) "$(TRAEFIK_DEV_IMAGE)" +print-%: ; @echo $*=$($*) + default: binary binary: build