blob: 19a97004519d29feac16083c5c35ec58b7af33a9 [file] [log] [blame]
Zack Williamse7927f42016-06-08 13:04:10 -07001IMAGE_NAME:=xosproject/onos-fork
2CONTAINER_NAME:=onos-fork
3NO_DOCKER_CACHE?=false
4
Andy Bavierd07df222016-08-18 10:28:36 -04005BUILD_ARGS =
6ifdef http_proxy
7BUILD_ARGS += --build-arg http_proxy=${http_proxy}
8endif
9ifdef https_proxy
10BUILD_ARGS += --build-arg https_proxy=${https_proxy}
11endif
12
Zack Williamse7927f42016-06-08 13:04:10 -070013.PHONY: build
Andy Bavierd07df222016-08-18 10:28:36 -040014build: ; sudo docker build --no-cache=${NO_DOCKER_CACHE} --rm -t ${IMAGE_NAME} ${BUILD_ARGS} .
Zack Williamse7927f42016-06-08 13:04:10 -070015
16.PHONY: run
17run: ; sudo docker run -d --name ${CONTAINER_NAME} ${IMAGE_NAME}
18
19.PHONY: stop
20stop: ; sudo docker stop ${CONTAINER_NAME}
21
22.PHONY: rm
23rm: ; sudo docker rm ${CONTAINER_NAME}