Skip to content

Commit a18a6b6

Browse files
committed
SRE-3742 ci: no_proxy for direct artifactory access in the Python Bandit check stage (#18045)
In the Python Bandit check stage: add no_proxy to access artifactory directly as an access via proxy does not work. Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@hpe.com> Priority: 2 Skip-build: true Skip-unit-tests:true Skip-unit-test: true Skip-NLT: true Skip-unit-test-memcheck: true Skip-test: true Skip-func-test: true Skip-func-vm: true Skip-fault-injection-test: true Skip-test-el-9-rpms: true Skip-test-leap-15-rpms: true Skip-func-hw-test: true
1 parent a29c5aa commit a18a6b6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

utils/docker/Dockerfile.code_scanning

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ ARG CB0
1616
# Use local repo server if present
1717
ARG REPO_FILE_URL
1818
ARG DAOS_LAB_CA_FILE_URL
19+
20+
# Accept DAOS_NO_PROXY at build time
21+
ARG DAOS_NO_PROXY
22+
# Propagate into the build environment
23+
ENV no_proxy=${DAOS_NO_PROXY}
24+
ENV NO_PROXY=${DAOS_NO_PROXY}
25+
# Persist into /etc/environment for use by shells and services
26+
RUN echo "no_proxy=${DAOS_NO_PROXY}" >> /etc/environment && \
27+
echo "NO_PROXY=${DAOS_NO_PROXY}" >> /etc/environment
28+
1929
# script to install OS updates basic tools and daos dependencies
2030
# COPY ./utils/scripts/install-fedora.sh /tmp/install.sh
2131
# script to setup local repo if available

0 commit comments

Comments
 (0)