From 074f4bdba8322294d7b37fc0b472736fd0a62c74 Mon Sep 17 00:00:00 2001 From: zontreck Date: Tue, 9 Jul 2024 16:48:56 -0700 Subject: [PATCH] Precache two SSH Host keys --- LinuxGeneralCompiler/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LinuxGeneralCompiler/Dockerfile b/LinuxGeneralCompiler/Dockerfile index df6089c..d65045f 100644 --- a/LinuxGeneralCompiler/Dockerfile +++ b/LinuxGeneralCompiler/Dockerfile @@ -90,4 +90,7 @@ ADD ./id_rsa.pub ./id_rsa.pub RUN chmod 0600 id_rsa +RUN ssh-keyscan -H github.com >> /root/.ssh/known_hosts +RUN ssh-keyscan -H git.zontreck.com >> /root/.ssh/known_hosts + ENTRYPOINT [ "java", "-jar", "/agent.jar", "-url", "https://ci.zontreck.com", "-secret", "@/agent.secret", "-name", "Linux", "-workDir", "/builder" ] \ No newline at end of file