blob: 352616a1bf2c155ba1feb0d45e234a9029c1a63d [file] [log] [blame]
David K. Bainbridgeab4a2eb2015-12-03 11:49:01 -08001IMAGE_NAME:=xosproject/xos-synchronizer-openstack
2CONTAINER_NAME:=xos-synchronizer
Jeremy Mowerye07a38b2016-04-16 12:25:30 -07003NO_DOCKER_CACHE?=false
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}