diff options
-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> |