Jeremy Mowery | 8393409 | 2016-04-19 17:14:22 -0700 | [diff] [blame] | 1 | IMAGE_NAME:=xosproject/xos-openvpn |
Jeremy Mowery | 5707d9c | 2016-04-16 12:21:04 -0700 | [diff] [blame] | 2 | CONTAINER_NAME:=xos-synchronizer |
| 3 | NO_DOCKER_CACHE?=true |
| 4 | |
| 5 | .PHONY: build |
| 6 | build: ; sudo docker build --no-cache=${NO_DOCKER_CACHE} --rm -t ${IMAGE_NAME} . |
| 7 | |
| 8 | .PHONY: run |
| 9 | run: ; 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 |
| 12 | stop: ; sudo docker stop ${CONTAINER_NAME} |
| 13 | |
| 14 | .PHONY: rm |
| 15 | rm: ; sudo docker rm ${CONTAINER_NAME} |
| 16 | |
| 17 | .PHONY: rmi |
| 18 | rmi: ; docker rmi ${IMAGE_NAME} |