blob: 733e7b8b1c15a9a75d49e82dbe460f61a6315fb1 [file] [log] [blame]
David K. Bainbridgeab4a2eb2015-12-03 11:49:01 -08001IMAGE_NAME:=xosproject/xos-synchronizer-openstack
2CONTAINER_NAME:=xos-synchronizer
Jeremy Mowery11e88782016-03-31 20:45:50 -07003NO_DOCKER_CACHE?=true
Tony Mack4eecc052015-11-16 20:41:49 +00004
5.PHONY: build
Andy Bavierf9e48bd2016-01-20 16:29:29 -08006build: ; sudo docker build --no-cache=${NO_DOCKER_CACHE} --rm -t ${IMAGE_NAME} .
Tony Mack4eecc052015-11-16 20:41:49 +00007
8.PHONY: run
Andy Bavierf9e48bd2016-01-20 16:29:29 -08009run: ; sudo 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
Andy Bavierf9e48bd2016-01-20 16:29:29 -080012stop: ; sudo docker stop ${CONTAINER_NAME}
Tony Mack4eecc052015-11-16 20:41:49 +000013
14.PHONY: rm
Andy Bavierf9e48bd2016-01-20 16:29:29 -080015rm: ; sudo docker rm ${CONTAINER_NAME}