David K. Bainbridge | ab4a2eb | 2015-12-03 11:49:01 -0800 | [diff] [blame] | 1 | IMAGE_NAME:=xosproject/xos-synchronizer-openstack |
| 2 | CONTAINER_NAME:=xos-synchronizer |
Jeremy Mowery | 81aab25 | 2016-02-21 15:57:20 -0700 | [diff] [blame^] | 3 | NO_DOCKER_CACHE?=true |
Tony Mack | 4eecc05 | 2015-11-16 20:41:49 +0000 | [diff] [blame] | 4 | |
| 5 | .PHONY: build |
Andy Bavier | f9e48bd | 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 | 4eecc05 | 2015-11-16 20:41:49 +0000 | [diff] [blame] | 7 | |
| 8 | .PHONY: run |
Andy Bavier | f9e48bd | 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 | 4eecc05 | 2015-11-16 20:41:49 +0000 | [diff] [blame] | 10 | |
| 11 | .PHONY: stop |
Andy Bavier | f9e48bd | 2016-01-20 16:29:29 -0800 | [diff] [blame] | 12 | stop: ; sudo docker stop ${CONTAINER_NAME} |
Tony Mack | 4eecc05 | 2015-11-16 20:41:49 +0000 | [diff] [blame] | 13 | |
| 14 | .PHONY: rm |
Andy Bavier | f9e48bd | 2016-01-20 16:29:29 -0800 | [diff] [blame] | 15 | rm: ; sudo docker rm ${CONTAINER_NAME} |