blob: 76b0b87b8df6a408ecf15299242eef7f66911637 [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
Andy Bavier95d0f8a2016-08-18 12:24:50 -040018config: ; sudo docker build --rm -t ${CONFIG_IMAGE_NAME} -f Dockerfile.config ${BUILD_ARGS} .
Andy Bavier6a9fb8e2016-06-24 17:49:00 -040019
20.PHONY: vtn
Andy Bavier95d0f8a2016-08-18 12:24:50 -040021vtn: ; sudo docker build --rm -t ${VTN_IMAGE_NAME} -f Dockerfile.vtn ${BUILD_ARGS} .