-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path9-stackhpc
More file actions
36 lines (29 loc) · 1.31 KB
/
9-stackhpc
File metadata and controls
36 lines (29 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Based on https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/rocky-container/containerfiles/9
FROM docker.io/rockylinux/rockylinux:9
ARG ROCKY_USE_CUSTOM_DNF_MIRRORS="false"
# Comma-delimited list of repo URLs
ARG ROCKY_CUSTOM_DNF_MIRROR_URLS
RUN if [[ ${ROCKY_USE_CUSTOM_DNF_MIRRORS} != "false" ]]; then \
dnf -y install 'dnf-command(config-manager)' && \
mkdir /tmp/orig_repos && mv /etc/yum.repos.d/*.repo /tmp/orig_repos/ && \
for REPO_URL in $(echo ${ROCKY_CUSTOM_DNF_MIRROR_URLS} | sed 's/,/ /g'); do \
dnf config-manager --add-repo ${REPO_URL}; \
done && \
dnf --allowerasing --exclude rocky-repos --exclude rocky-release -y distro-sync; \
fi
RUN dnf group install -y 'Minimal Install' --allowerasing && \
dnf install -y findutils util-linux cloud-init
COPY <<EOF /etc/cloud/cloud.cfg.d/10-NetworkManager.cfg
---
system_info:
activators:
- "network-manager"
merge_type: 'dict(recurse_array)'
EOF
RUN systemctl unmask console-getty.service dev-hugepages.mount \
getty.target sys-fs-fuse-connections.mount systemd-logind.service \
systemd-remount-fs.service
# /etc/machine-id needs to be populated for /bin/kernel-install to
# correctly copy kernels into /boot. We will clear this out in the
# final image.
RUN systemd-machine-id-setup