FROM docker.io/library/rockylinux:10 RUN dnf update --assumeyes && \ dnf install --assumeyes bash-completion sudo && \ dnf install --assumeyes epel-release && \ dnf install --assumeyes ansible-core && \ dnf install --assumeyes python3.12 python3-boto3 python3-botocore && \ dnf remove --assumeyes epel-release && \ dnf clean all # Install tools via pip RUN curl --fail --silent --location https://bootstrap.pypa.io/get-pip.py --output get-pip.py && \ python3 get-pip.py && \ pip install ansible-lint boto3 passlib # Install Azure Client RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc && \ dnf install --assumeyes https://packages.microsoft.com/config/rhel/10/packages-microsoft-prod.rpm && \ dnf update --assumeyes && \ dnf install --assumeyes azure-cli # Create default 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"]