File tree 2 files changed +9
-10
lines changed
2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 18
18
FROM centos:latest
19
19
MAINTAINER Gang Wang (garyw@apache.org)
20
20
21
- # set up your proxy below, refer to readme in the Docker folder
22
- ENV proxy_host ""
23
- ENV proxy_port ""
24
- # ENV http_proxy "http://${proxy_host}:${proxy_port}"
25
- # ENV https_proxy ${http_proxy}
26
- # ENV HTTP_PROXY ${http_proxy}
27
- # ENV HTTPS_PROXY ${http_proxy}
28
- # ENV proxy ${http_proxy}
29
-
30
- RUN echo $proxy
21
+ # set up your proxy below, please refer to readme in the Docker folder
22
+ ARG proxy_host=""
23
+ ARG proxy_port=""
24
+ ENV http_proxy ${proxy_host:+"http://${proxy_host}:${proxy_port}" }
25
+ ENV https_proxy ${http_proxy}
26
+ ENV HTTP_PROXY ${http_proxy}
27
+ ENV HTTPS_PROXY ${http_proxy}
28
+
29
+ RUN echo The proxy set : ${http_proxy}
31
30
32
31
RUN curl -sSL https://s3.amazonaws.com/download.fpcomplete.com/centos/7/fpco.repo | tee /etc/yum.repos.d/fpco.repo
33
32
You can’t perform that action at this time.
0 commit comments