Scott Baker | c87cb60 | 2016-06-01 17:49:07 -0700 | [diff] [blame^] | 1 | IMAGE_NAME:=xosproject/xos-synchronizer-onboarding |
| 2 | CONTAINER_NAME:=xos-synchronizer |
| 3 | NO_DOCKER_CACHE?=false |
| 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} |