blob: bdfb12653ad71726fb3c1de089494c1839a32b6b [file] [log] [blame]
A R Karthicke3bde962016-09-27 15:06:35 -07001IMAGE_NAME:=xosproject/xos-openvpn
2CONTAINER_NAME:=xos-synchronizer
3NO_DOCKER_CACHE?=true
4
5.PHONY: build
6build: ; sudo docker build --no-cache=${NO_DOCKER_CACHE} --rm -t ${IMAGE_NAME} .
7
8.PHONY: run
9run: ; sudo docker run -d --name ${CONTAINER_NAME} -v /usr/local/share/ca-certificates:/usr/local/share/ca-certificates:ro ${IMAGE_NAME}
10
11.PHONY: stop
12stop: ; sudo docker stop ${CONTAINER_NAME}
13
14.PHONY: rm
15rm: ; sudo docker rm ${CONTAINER_NAME}
16
17.PHONY: rmi
18rmi: ; docker rmi ${IMAGE_NAME}