blob: 4b789c425108b196cfb28488e6dda6df6498b605 [file] [log] [blame]
Andy Bavier6a9fb8e2016-06-24 17:49:00 -04001IMAGE_NAME:=xosproject/cord-app-build
2CONFIG_IMAGE_NAME:=xosproject/cord-app-config
3VTN_IMAGE_NAME:=xosproject/cord-app-vtn
4NO_DOCKER_CACHE?=false
5
Andy Bavierd07df222016-08-18 10:28:36 -04006BUILD_ARGS =
7ifdef http_proxy
8BUILD_ARGS += --build-arg http_proxy=${http_proxy}
9endif
10ifdef https_proxy
11BUILD_ARGS += --build-arg https_proxy=${https_proxy}
12endif
13
Andy Bavier6a9fb8e2016-06-24 17:49:00 -040014.PHONY: build
Andy Bavierd07df222016-08-18 10:28:36 -040015build: ; sudo docker build --no-cache=${NO_DOCKER_CACHE} --rm -t ${IMAGE_NAME} ${BUILD_ARGS} .
Andy Bavier6a9fb8e2016-06-24 17:49:00 -040016
17.PHONY: config
18config: ; sudo docker build --rm -t ${CONFIG_IMAGE_NAME} -f Dockerfile.config .
19
20.PHONY: vtn
21vtn: ; sudo docker build --rm -t ${VTN_IMAGE_NAME} -f Dockerfile.vtn .