diff --git a/Containerfile b/Containerfile index 8ed5846..4f84831 100644 --- a/Containerfile +++ b/Containerfile @@ -1,3 +1,10 @@ FROM registry.fedoraproject.org/fedora:36 -RUN useradd -l -u 3000018 jenkins +RUN groupadd -g 1000 jenkins \ + && useradd -c 'Jenkins user' -g 1000 -l -M -s /bin/sh -u 1000 jenkins + +COPY known-hosts-command.ssh.conf /etc/ssh/ssh_config.d/10-known-hosts-command.conf + +USER jenkins:jenkins + +CMD ["python3", "-c", "import signal;signal.pause()"] diff --git a/known-hosts-command.ssh.conf b/known-hosts-command.ssh.conf new file mode 100644 index 0000000..efb2772 --- /dev/null +++ b/known-hosts-command.ssh.conf @@ -0,0 +1 @@ +KnownHostsCommand /usr/bin/curl -sL https://files.pyrocufflink.blue/ssh_known_hosts