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