Andy Bavier | 6a9fb8e | 2016-06-24 17:49:00 -0400 | [diff] [blame] | 1 | IMAGE_NAME:=xosproject/cord-app-build |
| 2 | CONFIG_IMAGE_NAME:=xosproject/cord-app-config |
| 3 | VTN_IMAGE_NAME:=xosproject/cord-app-vtn |
| 4 | NO_DOCKER_CACHE?=false |
| 5 | |
Andy Bavier | d07df22 | 2016-08-18 10:28:36 -0400 | [diff] [blame] | 6 | BUILD_ARGS = |
| 7 | ifdef http_proxy |
| 8 | BUILD_ARGS += --build-arg http_proxy=${http_proxy} |
| 9 | endif |
| 10 | ifdef https_proxy |
| 11 | BUILD_ARGS += --build-arg https_proxy=${https_proxy} |
| 12 | endif |
| 13 | |
Andy Bavier | 6a9fb8e | 2016-06-24 17:49:00 -0400 | [diff] [blame] | 14 | .PHONY: build |
Andy Bavier | d07df22 | 2016-08-18 10:28:36 -0400 | [diff] [blame] | 15 | build: ; sudo docker build --no-cache=${NO_DOCKER_CACHE} --rm -t ${IMAGE_NAME} ${BUILD_ARGS} . |
Andy Bavier | 6a9fb8e | 2016-06-24 17:49:00 -0400 | [diff] [blame] | 16 | |
| 17 | .PHONY: config |
Andy Bavier | 95d0f8a | 2016-08-18 12:24:50 -0400 | [diff] [blame] | 18 | config: ; sudo docker build --rm -t ${CONFIG_IMAGE_NAME} -f Dockerfile.config ${BUILD_ARGS} . |
Andy Bavier | 6a9fb8e | 2016-06-24 17:49:00 -0400 | [diff] [blame] | 19 | |
| 20 | .PHONY: vtn |
Andy Bavier | 95d0f8a | 2016-08-18 12:24:50 -0400 | [diff] [blame] | 21 | vtn: ; sudo docker build --rm -t ${VTN_IMAGE_NAME} -f Dockerfile.vtn ${BUILD_ARGS} . |