summaryrefslogtreecommitdiffstats
path: root/aai-traversal/src/main/resources
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-06-14 10:26:09 -0500
committerVictor Morales <victor.morales@intel.com>2017-06-14 10:26:09 -0500
commit45a61a665251d2836b354041dab9877bc0541e80 (patch)
tree9871e71c418409c85e713075e2f6dcaa358303a9 /aai-traversal/src/main/resources
parent4d0bc004f38567750fb31f407fc495c0dee28b29 (diff)
Add HTTP_PROXY and HTTPS_PROXY args
It was included a mechanism to pass proxy arguments to the image. Besides fixing the use of HTTPS_PROXY. Change-Id: I3aed0eabff2ba6ca4aae14fb56a676f36437a826 Signed-off-by: Victor Morales <victor.morales@intel.com>
Diffstat (limited to 'aai-traversal/src/main/resources')
-rw-r--r--aai-traversal/src/main/resources/docker/Dockerfile9
1 files changed, 6 insertions, 3 deletions
diff --git a/aai-traversal/src/main/resources/docker/Dockerfile b/aai-traversal/src/main/resources/docker/Dockerfile
index ef0854e..596c71d 100644
--- a/aai-traversal/src/main/resources/docker/Dockerfile
+++ b/aai-traversal/src/main/resources/docker/Dockerfile
@@ -2,9 +2,12 @@ FROM ubuntu:14.04
ENV DEBIAN_FRONTEND noninteractive
+ARG HTTP_PROXY
+ARG HTTPS_PROXY
+
ENV HTTP_PROXY ${HTTP_PROXY}
-ENV HTTPS_PROXY ${HTTP_PROXY}
-ENV https_proxy ${HTTP_PROXY}
+ENV HTTPS_PROXY ${HTTPS_PROXY}
+ENV https_proxy ${HTTPS_PROXY}
ENV http_proxy ${HTTP_PROXY}
# Setup JAVA_HOME, this is useful for docker commandline
@@ -18,7 +21,7 @@ ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
# for the best possible performance out of your image
RUN if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi && \
- if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::https::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi && \
+ if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi && \
apt-get update && \
apt-get install -y software-properties-common uuid-runtime && \
apt-get install --reinstall ca-certificates && \