2022-02-15 03:15:24 -06:00
|
|
|
FROM registry.fedoraproject.org/fedora-toolbox:36
|
2019-02-23 14:23:17 -06:00
|
|
|
MAINTAINER [FreeIPA Developers freeipa-devel@lists.fedorahosted.org]
|
|
|
|
ENV container=docker LANG=en_US.utf8 LANGUAGE=en_US.utf8 LC_ALL=en_US.utf8
|
|
|
|
|
|
|
|
ADD dist /root
|
|
|
|
RUN echo 'deltarpm = false' >> /etc/dnf/dnf.conf \
|
|
|
|
&& dnf update -y dnf \
|
2019-05-15 09:49:02 -05:00
|
|
|
&& sed -i 's/%_install_langs \(.*\)/\0:fr/g' /etc/rpm/macros.image-language-conf \
|
2020-05-22 06:00:14 -05:00
|
|
|
&& dnf install -y systemd \
|
|
|
|
&& dnf install -y \
|
|
|
|
firewalld \
|
2020-09-22 07:52:31 -05:00
|
|
|
git \
|
2020-05-22 06:00:14 -05:00
|
|
|
glibc-langpack-fr \
|
|
|
|
glibc-langpack-en \
|
|
|
|
iptables \
|
|
|
|
nss-tools \
|
|
|
|
openssh-server \
|
|
|
|
sudo \
|
|
|
|
wget \
|
|
|
|
/root/rpms/*.rpm \
|
2019-02-23 14:23:17 -06:00
|
|
|
&& dnf clean all && rm -rf /root/rpms /root/srpms \
|
2020-02-10 02:14:40 -06:00
|
|
|
&& sed -i 's/.*PermitRootLogin .*/#&/g' /etc/ssh/sshd_config \
|
|
|
|
&& echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config \
|
|
|
|
&& systemctl enable sshd \
|
2019-02-23 14:23:17 -06:00
|
|
|
&& for i in /usr/lib/systemd/system/*-domainname.service; \
|
2021-05-06 11:52:21 -05:00
|
|
|
do sed -i 's#^ExecStart=/#ExecStart=-/#' $i ; done \
|
2021-05-06 14:19:31 -05:00
|
|
|
&& { systemctl mask systemd-resolved ||: ; } \
|
2021-05-06 11:52:21 -05:00
|
|
|
&& systemctl set-default multi-user.target
|
2019-02-23 14:23:17 -06:00
|
|
|
|
|
|
|
STOPSIGNAL RTMIN+3
|
|
|
|
VOLUME ["/freeipa", "/run", "/tmp"]
|
|
|
|
ENTRYPOINT [ "/usr/sbin/init" ]
|