diff options
author | Areli Fuss <af732p@att.com> | 2017-11-07 16:30:48 +0200 |
---|---|---|
committer | Areli Fuss <af732p@att.com> | 2017-11-07 16:30:48 +0200 |
commit | 90e2d3cd6d015fc0f74a7d0bb063788264def860 (patch) | |
tree | 3e0c5cd9dbbf3aa1e405c93d3dedb2d77c57ee7c | |
parent | d000db2617e5be66d8c2c5652e0bd11daa2c87f4 (diff) |
Add http_proxy definitions
Add http_proxy definitions
Change-Id: I379b330f5939537554a46ff8300ce802aa7be157
Issue-Id: VVP-25
Signed-off-by: Areli Fuss <af732p@att.com>
-rwxr-xr-x | Dockerfile | 10 | ||||
-rw-r--r-- | pom.xml | 3 |
2 files changed, 13 insertions, 0 deletions
@@ -65,8 +65,18 @@ RUN apt-key list #TEST RUN echo "####### TEST START #########" +ARG HTTP_PROXY +ARG 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 + ADD https://packages.gitlab.com/login ttt RUN curl https://packages.gitlab.com/login + RUN echo "####### TEST END #########" @@ -22,6 +22,9 @@ <!--docker--> <docker.tag>${project.version}-${timestamp}</docker.tag> <docker.latest.tag>${project.version}-latest</docker.latest.tag> + <!-- docker.buildArg.https_proxy>${env.HTTPS_PROXY}</docker.buildArg.https_proxy --> + <docker.buildArg.https_proxy>https://165.227.53.107:3128</docker.buildArg.https_proxy> + <docker.buildArg.http_proxy>http://35.196.90.170:80</docker.buildArg.http_proxy> </properties> <build> |