File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
elements/rocky-container-stackhpc/containerfiles Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Based on https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/rocky-container/containerfiles/9
2
2
3
3
FROM docker.io/rockylinux/rockylinux:9
4
+ ARG ROCKY_USE_MIRRORS=false
5
+ # Comma separated list of repo URLS
6
+ ARG ROCKY_MIRROR_URLS
7
+
8
+ RUN if [[ ${ROCKY_USE_MIRRORS} = "true" ]]; then \
9
+ dnf -y install 'dnf-command(config-manager)' && \
10
+ mkdir /tmp/orig_repos && mv -f /etc/yum.repos.d/* /tmp/orig_repos/ && \
11
+ for REPO_URL in $(echo ${ROCKY_MIRROR_URLS} | sed "s/,/ /g"); do \
12
+ dnf config-manager --add-repo ${REPO_URL}; done && \
13
+ dnf --allowerasing -y distro-sync; fi
4
14
5
15
RUN dnf group install -y 'Minimal Install' --allowerasing && \
6
16
dnf install -y findutils util-linux cloud-init
You can’t perform that action at this time.
0 commit comments