-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
34 lines (26 loc) · 884 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
################################################
#### Commands for building the Docker image ####
################################################
VERSION="2.1.5.0"
IM=phenoscape/blazegraph
docker-build-no-cache:
docker build --no-cache -t $(IM):$(VERSION) . \
&& docker tag $(IM):$(VERSION) $(IM):latest
docker-build:
docker build -t $(IM):$(VERSION) . \
&& docker tag $(IM):$(VERSION) $(IM):latest
docker-build-use-cache-dev:
docker build -t $(DEV):$(VERSION) . \
&& docker tag $(DEV):$(VERSION) $(DEV):latest
docker-clean:
docker kill $(IM) || echo not running ;
docker rm $(IM) || echo not made
docker-publish-no-build:
docker push $(IM):$(VERSION) \
&& docker push $(IM):latest
docker-publish-dev-no-build:
docker push $(DEV):$(VERSION) \
&& docker push $(DEV):latest
docker-publish: docker-build
docker push $(IM):$(VERSION) \
&& docker push $(IM):latest