mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Azure: Allow SSH for Docker environments
IPA integration tests utilize SSH as a transport to communicate with IPA hosts. To run such tests Docker environments should have configured SSH. Fixes: https://pagure.io/freeipa/issue/8202 Signed-off-by: Stanislav Levin <slev@altlinux.org> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
committed by
Alexander Bokovoy
parent
ecc398c409
commit
157fa59e7c
@@ -9,7 +9,11 @@ RUN echo 'deltarpm = false' >> /etc/dnf/dnf.conf \
|
||||
&& sed -i 's/%_install_langs \(.*\)/\0:fr/g' /etc/rpm/macros.image-language-conf \
|
||||
&& dnf install -y glibc-langpack-fr glibc-langpack-en \
|
||||
&& dnf install -y /root/rpms/*.rpm \
|
||||
&& dnf install -y openssh-server \
|
||||
&& 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user