David K. Bainbridge | 9c24cbf | 2015-12-03 11:49:01 -0800 | [diff] [blame] | 1 | IMAGE_NAME:=xosproject/xos-synchronizer-openstack |
| 2 | CONTAINER_NAME:=xos-synchronizer |
Jeremy Mowery | f76aa2a | 2016-03-19 22:19:08 -0700 | [diff] [blame] | 3 | NO_DOCKER_CACHE?=false |
Tony Mack | 3bcbee8 | 2015-11-16 20:41:49 +0000 | [diff] [blame] | 4 | |
| 5 | .PHONY: build |
Andy Bavier | 98171c5 | 2016-01-20 16:29:29 -0800 | [diff] [blame] | 6 | build: ; sudo docker build --no-cache=${NO_DOCKER_CACHE} --rm -t ${IMAGE_NAME} . |
Tony Mack | 3bcbee8 | 2015-11-16 20:41:49 +0000 | [diff] [blame] | 7 | |
| 8 | .PHONY: run |
Andy Bavier | 98171c5 | 2016-01-20 16:29:29 -0800 | [diff] [blame] | 9 | run: ; sudo docker run -d --name ${CONTAINER_NAME} -v /usr/local/share/ca-certificates:/usr/local/share/ca-certificates:ro ${IMAGE_NAME} |
Tony Mack | 3bcbee8 | 2015-11-16 20:41:49 +0000 | [diff] [blame] | 10 | |
| 11 | .PHONY: stop |
Andy Bavier | 98171c5 | 2016-01-20 16:29:29 -0800 | [diff] [blame] | 12 | stop: ; sudo docker stop ${CONTAINER_NAME} |
Tony Mack | 3bcbee8 | 2015-11-16 20:41:49 +0000 | [diff] [blame] | 13 | |
| 14 | .PHONY: rm |
Andy Bavier | 98171c5 | 2016-01-20 16:29:29 -0800 | [diff] [blame] | 15 | rm: ; sudo docker rm ${CONTAINER_NAME} |