Browse Source

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
changes/99/790499/1
Sreejith Punnapuzha 3 months ago
parent
commit
01a6f920a3
  1. 2
      alpine/Makefile

2
alpine/Makefile

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

Loading…
Cancel
Save