fix(rockylinux-8): init

This commit is contained in:
2025-05-07 14:08:34 +02:00
parent 9d219ab8a8
commit 9aa0361c36
2 changed files with 42 additions and 15 deletions

20
Dockerfile.rockylinux8 Normal file
View File

@ -0,0 +1,20 @@
FROM docker.io/library/rockylinux:8
RUN dnf update --assumeyes && \
dnf install --assumeyes epel-release && \
dnf install --assumeyes ansible && \
dnf remove --assumeyes epel-release && \
dnf install --assumeyes bash-completion sudo && \
dnf clean all
# Install Ansible inventory file
RUN mkdir --parents /etc/ansible
RUN echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
# Remove unnecessary getty and udev targets that result in high CPU usage when
# using multiple containers with molecule
# (https://github.com/ansible/molecule/issues/1104)
RUN rm --recursive --force /lib/systemd/system/systemd*udev* && \
rm --recursive --force /lib/systemd/system/getty.target
VOLUME [ "/sys/fs/cgroup", "/tmp", "/run"]