From 157fa59e7ce29ea3d7f254a102f7af1bfd77e237 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Mon, 10 Feb 2020 11:14:40 +0300 Subject: [PATCH] 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 Reviewed-By: Alexander Bokovoy --- ipatests/azure/Dockerfile.build-container | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ipatests/azure/Dockerfile.build-container b/ipatests/azure/Dockerfile.build-container index 105b60c51..6fc0f3bcb 100644 --- a/ipatests/azure/Dockerfile.build-container +++ b/ipatests/azure/Dockerfile.build-container @@ -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