aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmma Foley <emma.l.foley@intel.com>2018-01-29 09:48:44 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-01-29 09:48:44 +0000
commit69d5e6b288d16b5f9cab57859670d651eccd5e26 (patch)
tree87a7e4e24d9b35ffd11d19eb708a3f328a113383
parent92098cdeb1d0d21ceea33f4f234d7b383ab46f14 (diff)
parent31537ccdae3e876ffeb43a7a49e55127079e62a3 (diff)
Merge "Adding support to pull docker images behind proxy"
-rwxr-xr-xnsb_setup.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/nsb_setup.sh b/nsb_setup.sh
index cb44839af..4a8e4db93 100755
--- a/nsb_setup.sh
+++ b/nsb_setup.sh
@@ -42,6 +42,16 @@ proxy_env:
https_proxy: ${https_proxy}
no_proxy: ${no_proxy}
EOF
+
+ mkdir -p /etc/systemd/system/docker.service.d
+ cat <<EOF > /etc/systemd/system/docker.service.d/http-proxy.conf
+---
+[Service]
+Environment="HTTP_PROXY=${http_proxy}" "HTTPS_PROXY=${https_proxy}" "NO_PROXY=${no_proxy}"
+EOF
+
+ systemctl daemon-reload
+ systemctl restart docker
fi
apt-get update > /dev/null 2>&1