blob: c6d2a6ba3815c5b4322201b2c39cb1310a4111ef [file] [log] [blame]
Scott Bakerc87cb602016-06-01 17:49:07 -07001IMAGE_NAME:=xosproject/xos-synchronizer-onboarding
2CONTAINER_NAME:=xos-synchronizer
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
Scott Bakerc87cb602016-06-01 17:49:07 -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} .
Scott Bakerc87cb602016-06-01 17:49:07 -070015
16.PHONY: run
17run: ; sudo docker run -d --name ${CONTAINER_NAME} -v /usr/local/share/ca-certificates:/usr/local/share/ca-certificates:ro ${IMAGE_NAME}
18
19.PHONY: stop
20stop: ; sudo docker stop ${CONTAINER_NAME}
21
22.PHONY: rm
23rm: ; sudo docker rm ${CONTAINER_NAME}