Skip to content

Commit

Permalink
Merge pull request #13 from kirankt/curl-proxy-env
Browse files Browse the repository at this point in the history
Enable the use of a proxy to download images
  • Loading branch information
metal3-io-bot authored Jan 23, 2020
2 parents 5806141 + 6abb09b commit 22cf258
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions get-resource.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/bash -xe
#CACHEURL=http://172.22.0.1/images

# Check and set http(s)_proxy. Required for cURL to use a proxy
export http_proxy=${http_proxy:-$HTTP_PROXY}
export https_proxy=${https_proxy:-$HTTPS_PROXY}

# Which image should we use
SNAP=${1:-current-tripleo}
IPA_BASEURI=${IPA_BASEURI:-https://images.rdoproject.org/train/rdo_trunk/$SNAP/}
Expand Down

0 comments on commit 22cf258

Please sign in to comment.