mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-10 10:45:55 +00:00
This change also removed ansible_python_interpreter setting in the inventory as the interpreter should be discovered by ansible for the distributions. The dockerfiles have been adapted to not force the installation of python3 for CentOS-Stream 8, 9 and 10.
31 lines
799 B
Plaintext
31 lines
799 B
Plaintext
FROM quay.io/centos/centos:stream8
|
|
ENV container=podman
|
|
|
|
RUN rm -fv /var/cache/dnf/metadata_lock.pid; \
|
|
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo; \
|
|
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo; \
|
|
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo; \
|
|
dnf makecache; \
|
|
dnf --assumeyes install \
|
|
/usr/bin/dnf-3 \
|
|
sudo \
|
|
bash \
|
|
systemd \
|
|
procps-ng \
|
|
iproute; \
|
|
dnf clean all; \
|
|
rm -rf /var/cache/dnf/;
|
|
|
|
COPY system-service/fixnet.sh /root/
|
|
COPY system-service/fixipaip.sh /root/
|
|
COPY system-service/fixnet.service /etc/systemd/system/
|
|
COPY system-service/fixipaip.service /etc/systemd/system/
|
|
RUN chmod +x /root/fixnet.sh /root/fixipaip.sh
|
|
|
|
STOPSIGNAL RTMIN+3
|
|
|
|
VOLUME ["/sys/fs/cgroup"]
|
|
|
|
CMD ["/usr/sbin/init"]
|
|
|