blob: 6004e76bca29579852c0a45651ff25ad34b9d1cc [file] [log] [blame]
Jeremy Mowery5707d9c2016-04-16 12:21:04 -07001IMAGE_NAME:=xosproject/xos-vpn
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}