Skip to content

Commit 2bd352e

Browse files
committed
Try specifying HTTP and HTTPS proxies.
1 parent d0a4dd3 commit 2bd352e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java-components/build-request-processor/src/main/java/com/redhat/hacbs/container/build/preprocessor/AbstractPreprocessor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ private String getContainerFile() {
175175
WORKDIR /var/workdir
176176
ARG PROXY_URL=""
177177
ENV PROXY_URL=$PROXY_URL
178+
ENV http_proxy=http://localhost:8080
179+
ENV https_proxy=$(http_proxy)
178180
COPY .jbs/run-build.sh /var/workdir
179181
COPY . /var/workdir/workspace/source/
180182
RUN /var/workdir/run-build.sh

0 commit comments

Comments
 (0)