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 |
David K. Bainbridge | 911ecc6 | 2015-12-03 20:24:30 -0800 | [diff] [blame] | 3 | NO_DOCKER_CACHE?=false |
Tony Mack | 4eecc05 | 2015-11-16 20:41:49 +0000 | [diff] [blame] | 4 | |
| 5 | .PHONY: build |
David K. Bainbridge | 911ecc6 | 2015-12-03 20:24:30 -0800 | [diff] [blame] | 6 | build: ; 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 |
Tony Mack | 12963cf | 2015-12-16 17:40:00 +0000 | [diff] [blame] | 9 | run: ; 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 |
| 12 | stop: ; docker stop ${CONTAINER_NAME} |
| 13 | |
| 14 | .PHONY: rm |
| 15 | rm: ; docker rm ${CONTAINER_NAME} |