blob: bdfb12653ad71726fb3c1de089494c1839a32b6b [file] [log] [blame]
Jeremy Mowery83934092016-04-19 17:14:22 -07001IMAGE_NAME:=xosproject/xos-openvpn
Jeremy Mowery5707d9c2016-04-16 12:21:04 -07002CONTAINER_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}