blob: 733e7b8b1c15a9a75d49e82dbe460f61a6315fb1 [file] [log] [blame]
David K. Bainbridge9c24cbf2015-12-03 11:49:01 -08001IMAGE_NAME:=xosproject/xos-synchronizer-openstack
2CONTAINER_NAME:=xos-synchronizer
Jeremy Mowery9d73eb52016-03-31 20:45:50 -07003NO_DOCKER_CACHE?=true
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}