forked from Cingulara/openrmf-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (23 loc) · 719 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
VERSION ?= 1.02.02
NAME ?= "openrmf-web"
AUTHOR ?= "Dale Bingham"
PORT_EXT ?= 9000
PORT_INT ?= 80
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) .
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
clean:
@rm -f -r obj
@rm -f -r bin
version:
@echo ${VERSION}
dockerhub:
docker tag $(NAME)\:$(VERSION) ${DOCKERHUB_ACCOUNT}\/$(NAME)\:$(VERSION)
docker push ${DOCKERHUB_ACCOUNT}\/$(NAME)\:$(VERSION)
DEFAULT: latest