-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathrocky-9.2
More file actions
32 lines (26 loc) · 1.57 KB
/
Copy pathrocky-9.2
File metadata and controls
32 lines (26 loc) · 1.57 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
# syntax=docker/dockerfile:1.4.3
FROM docker.io/library/rockylinux:9.2
ARG rocky_version=9.2
# /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
# Pin to an older version of Rocky Linux by setting a DNF package variable
RUN echo "9.2" > /etc/dnf/vars/releasever && dnf update -y --refresh
# Install/remove packages from https://git.rockylinux.org/rocky/kickstarts/-/blob/r8/Rocky-8-GenericCloud.ks
RUN dnf install -y @core --allowerasing
RUN dnf install -y chrony dnf yum cloud-init cloud-utils-growpart \
dracut-config-generic firewalld gdisk grub2 \
kernel nfs-utils rsync tar dnf-utils yum-utils \
python3-jsonschema dhcp-client \
rocky-release rng-tools initscripts
RUN dnf erase -y aic94xx-firmware alsa-firmware alsa-lib alsa-tools-firmware \
ivtv-firmware iwl100-firmware iwl1000-firmware iwl105-firmware \
iwl135-firmware iwl2000-firmware iwl2030-firmware iwl3160-firmware \
iwl3945-firmware iwl4965-firmware iwl5000-firmware iwl5150-firmware \
iwl6000-firmware iwl6000g2a-firmware iwl6000g2b-firmware iwl6050-firmware \
iwl7260-firmware libertas-sd8686-firmware libertas-sd8787-firmware \
libertas-usb8388-firmware biosdevname iprutils plymouth
RUN systemctl unmask console-getty.service dev-hugepages.mount \
getty.target sys-fs-fuse-connections.mount systemd-logind.service \
systemd-remount-fs.service