| ADD almalinux-10-kitten-default-amd64.tar.xz / # buildkit |
| CMD ["/bin/bash"] |
| LABEL maintainer="Lorenz Mueller" |
| ENV container=docker |
| ENV pip_packages="ansible" |
| /bin/sh -c rm -f /lib/systemd/system/multi-user.target.wants/*;rm -f /etc/systemd/system/*.wants/*;rm -f /lib/systemd/system/local-fs.target.wants/*; rm -f /lib/systemd/system/sockets.target.wants/*udev*; rm -f /lib/systemd/system/sockets.target.wants/*initctl*; rm -f /lib/systemd/system/basic.target.wants/*;rm -f /lib/systemd/system/anaconda.target.wants/*; |
| /bin/sh -c dnf -y install rpm dnf-plugins-core && dnf -y update && dnf -y install epel-release initscripts sudo which hostname libyaml python3 python3-pip python3-pyyaml iproute && dnf clean all |
| /bin/sh -c pip3 install --upgrade pip |
| /bin/sh -c pip3 install $pip_packages |
| /bin/sh -c sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers |
| /bin/sh -c mkdir -p /etc/ansible |
| /bin/sh -c echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts |
| VOLUME ["/sys/fs/cgroup"] |
| CMD ["/usr/lib/systemd/systemd"] |