X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=deliveries%2Fos_Dockerfile;h=36ecd85f26845f9fda6e2d995e75e1c9ec913dc7;hb=335773f2cb017ee1ce0dbe173a2da1819c083bfd;hp=b322b547acb270623e2bbaf2566783a0bfbd2a11;hpb=19de351f906523ed86b0221ebea33a8ac2bac9bc;p=portal.git diff --git a/deliveries/os_Dockerfile b/deliveries/os_Dockerfile index b322b547..36ecd85f 100644 --- a/deliveries/os_Dockerfile +++ b/deliveries/os_Dockerfile @@ -3,6 +3,15 @@ FROM ubuntu:14.04 +ARG HTTP_PROXY=${HTTP_PROXY} +ARG HTTPS_PROXY=${HTTPS_PROXY} + +ENV http_proxy $HTTP_PROXY +ENV https_proxy $HTTPS_PROXY + +RUN if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi && \ + if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi + # Install the python script required for "add-apt-repository" RUN apt-get update && apt-get install -y software-properties-common