mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
72dccd8244
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
33 lines
1.1 KiB
Docker
33 lines
1.1 KiB
Docker
FROM registry.fedoraproject.org/fedora-toolbox:38
|
|
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 \
|
|
&& (sed -i 's/%_install_langs \(.*\)/\0:fr/g' /etc/rpm/macros.image-language-conf ||:) \
|
|
&& dnf install -y systemd \
|
|
&& dnf install -y \
|
|
firewalld \
|
|
git \
|
|
glibc-langpack-fr \
|
|
glibc-langpack-en \
|
|
iptables \
|
|
nss-tools \
|
|
openssh-server \
|
|
sudo \
|
|
wget \
|
|
/root/rpms/*.rpm \
|
|
&& dnf clean all && rm -rf /root/rpms /root/srpms \
|
|
&& sed -i 's/.*PermitRootLogin .*/#&/g' /etc/ssh/sshd_config \
|
|
&& echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config \
|
|
&& systemctl enable sshd \
|
|
&& for i in /usr/lib/systemd/system/*-domainname.service; \
|
|
do sed -i 's#^ExecStart=/#ExecStart=-/#' $i ; done \
|
|
&& { systemctl mask systemd-resolved ||: ; } \
|
|
&& systemctl set-default multi-user.target
|
|
|
|
STOPSIGNAL RTMIN+3
|
|
VOLUME ["/freeipa", "/run", "/tmp"]
|
|
ENTRYPOINT [ "/usr/sbin/init" ]
|