Zack Williams | 42d2689 | 2016-06-08 13:04:10 -0700 | [diff] [blame] | 1 | IMAGE_NAME:=xosproject/onos-fork |
2 | CONTAINER_NAME:=onos-fork | ||||
3 | NO_DOCKER_CACHE?=false | ||||
4 | |||||
5 | .PHONY: build | ||||
6 | build: ; sudo docker build --no-cache=${NO_DOCKER_CACHE} --rm -t ${IMAGE_NAME} . | ||||
7 | |||||
8 | .PHONY: run | ||||
9 | run: ; sudo docker run -d --name ${CONTAINER_NAME} ${IMAGE_NAME} | ||||
10 | |||||
11 | .PHONY: stop | ||||
12 | stop: ; sudo docker stop ${CONTAINER_NAME} | ||||
13 | |||||
14 | .PHONY: rm | ||||
15 | rm: ; sudo docker rm ${CONTAINER_NAME} |