Skip to content

Commit

Permalink
Add [scheme]_proxy variables to enable curl to download files using a…
Browse files Browse the repository at this point in the history
… proxy
  • Loading branch information
kirankt committed Jan 15, 2020
1 parent 5806141 commit 6abb09b
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 6abb09b

Please sign in to comment.