From 2a6a96302f305cf41f095749c07e602fb7f9698f Mon Sep 17 00:00:00 2001 From: Felipe de Jesus Ruiz Garcia Date: Wed, 21 Nov 2018 16:46:08 -0600 Subject: [PATCH] Add proxy env comments to Dockerfile Behind a VPN network proxy must be required for yum daemon. Change-Id: I963f76c8f7977bfffd2a389f773c86cd52214ec9 Signed-off-by: Felipe de Jesus Ruiz Garcia --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 87ef00b8..6462ca79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,9 @@ FROM centos:7.4.1708 #ENV https_proxy "https://your.actual_https_proxy.com:your_port" #ENV ftp_proxy "http://your.actual_ftp_proxy.com:your_port" +#RUN echo "proxy=$http_proxy" >> /etc/yum.conf && \ +# echo -e "export http_proxy=$http_proxy\nexport https_proxy=$https_proxy\n\ +#export ftp_proxy=$ftp_proxy" >> /root/.bashrc # username you will docker exec into the container as. # It should NOT be your host username so you can easily tell