forked from fabric8-analytics/f8a-hpf-insights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (23 loc) · 826 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
ifeq ($(TARGET),rhel)
DOCKERFILE := Dockerfile.rhel
REPOSITORY := openshiftio/rhel-fabric8-analytics-f8a-hpf-insights
else
DOCKERFILE := Dockerfile
REPOSITORY := openshiftio/fabric8-analytics-f8a-hpf-insights
endif
REGISTRY := quay.io
DEFAULT_TAG := latest
.PHONY: all docker-build fast-docker-build get-image-name get-image-repository
all: fast-docker-build
docker-build:
docker build --no-cache -t $(REGISTRY)/$(REPOSITORY):$(DEFAULT_TAG) -f $(DOCKERFILE) .
docker-build-test: docker-build
docker build --no-cache -t hpf-insights-tests -f Dockerfile.tests .
fast-docker-build:
docker build -t $(REGISTRY)/$(REPOSITORY):$(DEFAULT_TAG) -f $(DOCKERFILE) .
get-image-name:
@echo $(REGISTRY)/$(REPOSITORY):$(DEFAULT_TAG)
get-image-repository:
@echo $(REPOSITORY)
get-push-registry:
@echo $(REGISTRY)