blob: 352616a1bf2c155ba1feb0d45e234a9029c1a63d [file] [log] [blame]
David K. Bainbridge9c24cbf2015-12-03 11:49:01 -08001IMAGE_NAME:=xosproject/xos-synchronizer-openstack
2CONTAINER_NAME:=xos-synchronizer
Jeremy Mowery3bcea4b2016-04-01 21:54:29 -07003NO_DOCKER_CACHE?=false
Tony Mack3bcbee82015-11-16 20:41:49 +00004
5.PHONY: build
Andy Bavier98171c52016-01-20 16:29:29 -08006build: ; sudo docker build --no-cache=${NO_DOCKER_CACHE} --rm -t ${IMAGE_NAME} .
Tony Mack3bcbee82015-11-16 20:41:49 +00007
8.PHONY: run
Andy Bavier98171c52016-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 Mack3bcbee82015-11-16 20:41:49 +000010
11.PHONY: stop
Andy Bavier98171c52016-01-20 16:29:29 -080012stop: ; sudo docker stop ${CONTAINER_NAME}
Tony Mack3bcbee82015-11-16 20:41:49 +000013
14.PHONY: rm
Andy Bavier98171c52016-01-20 16:29:29 -080015rm: ; sudo docker rm ${CONTAINER_NAME}