blob: 3b103129274d3b33255cfb38c2d4232a68df5fb6 [file] [log] [blame]
David K. Bainbridgeab4a2eb2015-12-03 11:49:01 -08001IMAGE_NAME:=xosproject/xos-synchronizer-openstack
2CONTAINER_NAME:=xos-synchronizer
David K. Bainbridge911ecc62015-12-03 20:24:30 -08003NO_DOCKER_CACHE?=false
Tony Mack4eecc052015-11-16 20:41:49 +00004
5.PHONY: build
David K. Bainbridge911ecc62015-12-03 20:24:30 -08006build: ; docker build --no-cache=${NO_DOCKER_CACHE} --rm -t ${IMAGE_NAME} .
Tony Mack4eecc052015-11-16 20:41:49 +00007
8.PHONY: run
Tony Mack12963cf2015-12-16 17:40:00 +00009run: ; docker run -d --name ${CONTAINER_NAME} -v /usr/local/share/ca-certificates:/usr/local/share/ca-certificates:ro ${IMAGE_NAME}
Tony Mack4eecc052015-11-16 20:41:49 +000010
11.PHONY: stop
12stop: ; docker stop ${CONTAINER_NAME}
13
14.PHONY: rm
15rm: ; docker rm ${CONTAINER_NAME}