forked from fabric8-analytics/fabric8-analytics-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (24 loc) · 880 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
33
34
REGISTRY?=registry.devshift.net
REPOSITORY?=bayesian/bayesian-api
DEFAULT_TAG=latest
ifeq ($(TARGET),rhel)
DOCKERFILE := Dockerfile.rhel
else
DOCKERFILE := Dockerfile
endif
.PHONY: all docker-build fast-docker-build test get-image-name get-image-repository docker-build-tests fast-docker-build-tests
all: fast-docker-build
docker-build:
docker build --no-cache -t $(REGISTRY)/$(REPOSITORY):$(DEFAULT_TAG) -f $(DOCKERFILE) .
docker-build-tests: docker-build
docker build --no-cache -t coreapi-server-tests -f Dockerfile.tests .
fast-docker-build:
docker build -t $(REGISTRY)/$(REPOSITORY):$(DEFAULT_TAG) -f $(DOCKERFILE) .
fast-docker-build-tests:
docker build -t coreapi-server-tests -f Dockerfile.tests .
test: fast-docker-build-tests
./runtest.sh
get-image-name:
@echo $(REGISTRY)/$(REPOSITORY):$(DEFAULT_TAG)
get-image-repository:
@echo $(REPOSITORY)