mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
2b85bfb030
`registry.fedoraproject.org/f32/fedora-toolbox` image is used to build packages on Azure Pipelines. registry.fedoraproject.org experiences an availability problem and makes unstable FreeIPA CI. Fedora also distributes its official images on https://hub.docker.com/_/fedora. `fedora:32` is already used by FreeIPA CI to build the image for tests. Signed-off-by: Stanislav Levin <slev@altlinux.org> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Francois Cami <fcami@redhat.com>
30 lines
1014 B
Docker
30 lines
1014 B
Docker
FROM fedora:32
|
|
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 \
|
|
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
|
|
|
|
STOPSIGNAL RTMIN+3
|
|
VOLUME ["/freeipa", "/run", "/tmp"]
|
|
ENTRYPOINT [ "/usr/sbin/init" ]
|