From 83bb220d3a5d6db48d056ffb4514dbe7c133aacf Mon Sep 17 00:00:00 2001 From: zontreck Date: Tue, 9 Jul 2024 00:10:48 -0700 Subject: [PATCH] Install ssh keys into container image --- LinuxGeneralCompiler/Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/LinuxGeneralCompiler/Dockerfile b/LinuxGeneralCompiler/Dockerfile index eb838c2..df6089c 100644 --- a/LinuxGeneralCompiler/Dockerfile +++ b/LinuxGeneralCompiler/Dockerfile @@ -5,12 +5,13 @@ LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com" COPY ./agent.secret /agent.secret ENV DOCKER 1 -USER 0 +USER root WORKDIR / ENV GRADLE_VERSION 8.3 ENV ANDROID_HOME "/opt/android-sdk-linux" +ENV HOME /root ENV ANDROID_SDK_VER 11076708 ENV ANDROID_SDK_ROOT $ANDROID_HOME ENV PATH $PATH:$ANDROID_HOME/cmdline-tools:$ANDROID_HOME/cmdline-tools/bin:$ANDROID_HOME/platform-tools:/flutter/bin @@ -83,4 +84,10 @@ RUN git config --global user.email "tarapiccari@gmail.com" RUN apt-get install -y rsync zip +WORKDIR /root/.ssh +ADD ./id_rsa ./id_rsa +ADD ./id_rsa.pub ./id_rsa.pub + +RUN chmod 0600 id_rsa + ENTRYPOINT [ "java", "-jar", "/agent.jar", "-url", "https://ci.zontreck.com", "-secret", "@/agent.secret", "-name", "Linux", "-workDir", "/builder" ] \ No newline at end of file