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 /Dockerfile | |
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>
Diffstat (limited to 'Dockerfile')
-rwxr-xr-x | Dockerfile | 10 |
1 files changed, 10 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 #########" |