Add Proxy for curl command.

Curl by default reads proxy from environment variable. This commit adds
proxy option to curl command.

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I6268ecc8e9d5c2d7a1c970e84188513bd2118b25
This commit is contained in:
Sreejith Punnapuzha 2021-05-10 12:13:14 -05:00
parent 4b2b7958f1
commit 01a6f920a3

View File

@ -48,7 +48,7 @@ build_image:
mkdir -p $(BUILD_DIR) mkdir -p $(BUILD_DIR)
ifeq ($(IMAGE_ID), none) ifeq ($(IMAGE_ID), none)
ifeq ($(USE_PROXY), true) ifeq ($(USE_PROXY), true)
curl -o alpine-minirootfs.tar.gz $(ALPINE_URL) curl -o alpine-minirootfs.tar.gz $(ALPINE_URL) --proxy $(PROXY)
docker build . \ docker build . \
--iidfile $(BUILD_DIR)/image_id \ --iidfile $(BUILD_DIR)/image_id \
--tag $(IMAGE) \ --tag $(IMAGE) \