diff --git a/docker/gitea/Dockerfile b/docker/gitea/Dockerfile index 069dda8b64..90e85dbda1 100644 --- a/docker/gitea/Dockerfile +++ b/docker/gitea/Dockerfile @@ -113,4 +113,4 @@ COPY sshd-entrypoint.sh /usr/bin/entrypoint EXPOSE 22 VOLUME ["/data"] ENTRYPOINT ["/usr/bin/entrypoint"] -CMD ["/usr/sbin/sshd", "-D"] +CMD ["/usr/sbin/sshd", "-D", "-e"] diff --git a/testinfra/test_gitea.py b/testinfra/test_gitea.py index d50160681a..c9c3e2a884 100644 --- a/testinfra/test_gitea.py +++ b/testinfra/test_gitea.py @@ -29,3 +29,7 @@ def test_ulimit(host): expected = ("STACK max stack size " "16777216 9223372036854775807 bytes") assert expected in cmd.stdout.split('\n') + +def test_sshd_logs(host): + cmd = host.run("docker logs giteadocker_gitea-ssh_1") + assert cmd.stdout != '' or cmd.stderr != ''