From ba4060f422965a7336f45702754157b1842427ee Mon Sep 17 00:00:00 2001 From: zontreck Date: Wed, 21 Aug 2024 23:05:10 -0700 Subject: [PATCH] Add new maven details --- LinuxGeneralCompiler/Dockerfile | 6 ++++-- LinuxGeneralCompiler/processData | 12 ++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 LinuxGeneralCompiler/processData diff --git a/LinuxGeneralCompiler/Dockerfile b/LinuxGeneralCompiler/Dockerfile index adbff5d..6462078 100644 --- a/LinuxGeneralCompiler/Dockerfile +++ b/LinuxGeneralCompiler/Dockerfile @@ -15,7 +15,9 @@ RUN chmod 0600 id_rsa WORKDIR /root/.gradle ADD ./gradle.properties ./ WORKDIR / -ADD ./env /env.bash -RUN source /env.bash +ADD acmvn /acmvn +ADD processData /processData +RUN /processData +RUN source /acmvn ENTRYPOINT [ "java", "-jar", "/agent.jar", "-url", "https://ci.zontreck.com", "-secret", "@/agent.secret", "-name", "Linux", "-workDir", "/builder" ] diff --git a/LinuxGeneralCompiler/processData b/LinuxGeneralCompiler/processData new file mode 100644 index 0000000..fca7856 --- /dev/null +++ b/LinuxGeneralCompiler/processData @@ -0,0 +1,12 @@ +#!/bin/bash + +cd / +mv acmvn{,.tmp} + +echo "#!/bin/bash" > /acmvn +echo "export MVN_USER=zontreck" >> /acmvn +echo -ne "export ACMVN=" >> /acmvn +cat /acmvn.tmp >> /acmvn +rm /acmvn.tmp + +rm /processData \ No newline at end of file