Commit 269a4d33 authored by Lars Fenneberg's avatar Lars Fenneberg Committed by Geoff Simmons

Add option to specify an image repository

parent 9e432879
......@@ -28,6 +28,12 @@ all: controller varnish haproxy
DOCKER_BUILD_OPTIONS =
ifeq ($(origin IMAGE_REPO), undefined)
IMAGE_REPO =
else
override IMAGE_REPO := $(IMAGE_REPO)/
endif
MINIKUBE =
docker-minikube:
......@@ -36,13 +42,13 @@ ifeq ($(MINKUBE),1)
endif
controller: Dockerfile.controller docker-minikube
docker build $(DOCKER_BUILD_OPTIONS) -t varnish-ingress/controller \
docker build $(DOCKER_BUILD_OPTIONS) -t $(IMAGE_REPO)varnish-ingress/controller \
-f Dockerfile.controller ..
varnish: Dockerfile.varnish docker-minikube
docker build $(DOCKER_BUILD_OPTIONS) -t varnish-ingress/varnish \
docker build $(DOCKER_BUILD_OPTIONS) -t $(IMAGE_REPO)varnish-ingress/varnish \
-f Dockerfile.varnish .
haproxy: Dockerfile.haproxy docker-minikube
docker build $(DOCKER_BUILD_OPTIONS) -t varnish-ingress/haproxy \
docker build $(DOCKER_BUILD_OPTIONS) -t $(IMAGE_REPO)varnish-ingress/haproxy \
-f Dockerfile.haproxy .
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment