Skip to content

Commit 13be123

Browse files
committed
Ensure repo files don't get re-enabled in later steps
1 parent 7a704d1 commit 13be123

File tree

1 file changed

+1
-1
lines changed
  • elements/rocky-container-stackhpc/containerfiles

1 file changed

+1
-1
lines changed

elements/rocky-container-stackhpc/containerfiles/9-stackhpc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG ROCKY_MIRROR_URLS
77

88
RUN if [[ ${ROCKY_USE_MIRRORS} = "true" ]]; then \
99
dnf -y install 'dnf-command(config-manager)' && \
10-
mkdir /tmp/orig_repos && mv -f /etc/yum.repos.d/* /tmp/orig_repos/ && \
10+
dnf config-manager --set-disabled '*' && \
1111
for REPO_URL in $(echo ${ROCKY_MIRROR_URLS} | sed "s/,/ /g"); do \
1212
dnf config-manager --add-repo ${REPO_URL}; done && \
1313
dnf --allowerasing -y distro-sync; fi

0 commit comments

Comments
 (0)