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 |
David K. Bainbridge | ab4a2eb | 2015-12-03 11:49:01 -0800 | [diff] [blame] | 9 | run: ; docker run -d --name ${CONTAINER_NAME} ${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} |