-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
27 lines (21 loc) · 908 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
VERSION ?= 1.12.00
NAME ?= "openrmf-web"
AUTHOR ?= "Dale Bingham"
NO_CACHE ?= true
DOCKERHUB_ACCOUNT ?= cingulara
.PHONY: build docker latest run stop clean version dockerhub
docker:
docker build -f Dockerfile -t $(NAME)\:$(VERSION) --no-cache=$(NO_CACHE) .
docker build -f Dockerfile.privileged -t $(NAME)\:$(VERSION)-privileged --no-cache=$(NO_CACHE) .
latest:
docker build -f Dockerfile -t $(NAME)\:latest --no-cache=$(NO_CACHE) .
docker tag $(NAME)\:latest ${DOCKERHUB_ACCOUNT}\/$(NAME)\:latest
docker push ${DOCKERHUB_ACCOUNT}\/$(NAME)\:latest
version:
@echo ${VERSION}
dockerhub:
docker tag $(NAME)\:$(VERSION) ${DOCKERHUB_ACCOUNT}\/$(NAME)\:$(VERSION)
docker push ${DOCKERHUB_ACCOUNT}\/$(NAME)\:$(VERSION)
docker tag $(NAME)\:$(VERSION)-privileged ${DOCKERHUB_ACCOUNT}\/$(NAME)\:$(VERSION)-privileged
docker push ${DOCKERHUB_ACCOUNT}\/$(NAME)\:$(VERSION)-privileged
DEFAULT: latest