Skip to content

Commit ac7d13d

Browse files
committed
SRE-3731 ci: Manual NO_PROXY override
Not sure what changed, but adding NO_PROXY fixed an issue of not being able to install packages. Also updated ENV definitions based on the feedback: WARN: LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format Signed-off-by: Ryon Jensen <ryon.jensen@hpe.com>
1 parent e1c7fc3 commit ac7d13d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

utils/rpms/packaging/Dockerfile.mockbuild

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ FROM fedora:$FVERSION
1111
# Needed for later use of FVERSION
1212
ARG FVERSION
1313
LABEL maintainer="daos@daos.groups.io"
14+
ARG DAOS_NO_PROXY
15+
ENV NO_PROXY=${DAOS_NO_PROXY}
1416

1517
# Use local repo server if present
1618
ARG REPO_FILE_URL
@@ -38,8 +40,8 @@ RUN dnf -y install mock make \
3840
ARG UID=1000
3941

4042
# Add build user (to keep rpmbuild happy)
41-
ENV USER build
42-
ENV PASSWD build
43+
ENV USER=build
44+
ENV PASSWD=build
4345
RUN useradd -u $UID -ms /bin/bash $USER
4446
RUN echo "$USER:$PASSWD" | chpasswd
4547
# add the user to the mock group so it can run mock

0 commit comments

Comments
 (0)