Skip to content

Commit

Permalink
Merge pull request #862 from rnc/BR1
Browse files Browse the repository at this point in the history
Add a default store policy for the diagnostic cache
  • Loading branch information
stuartwdouglas authored Sep 30, 2023
2 parents b3c8aa9 + 017e26a commit 2c8753d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/reconciler/dependencybuild/buildrecipeyaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ func createPipelineSpec(tool string, commitTime int64, jbsConfig *v1alpha12.JBSC
"\nCOPY --from=build-request-processor /etc/java/java-17-openjdk /etc/java/java-17-openjdk" +
"\nCOPY --from=cache /deployments/ /root/software/cache" +
"\nRUN " + doSubstitution(gitArgs, paramValues, commitTime, buildRepos) +
"\nRUN echo " + base64.StdEncoding.EncodeToString([]byte("#!/bin/sh\n/root/software/system-java/bin/java -Dkube.disabled=true -Dquarkus.kubernetes-client.trust-certs=true -jar /root/software/cache/quarkus-run.jar >/root/cache.log &"+
"\nRUN echo " + base64.StdEncoding.EncodeToString([]byte("#!/bin/sh\n/root/software/system-java/bin/java -Dbuild-policy.default.store-list=rebuilt,central,jboss,redhat -Dkube.disabled=true -Dquarkus.kubernetes-client.trust-certs=true -jar /root/software/cache/quarkus-run.jar >/root/cache.log &"+
"\nwhile ! cat /root/cache.log | grep 'Listening on:'; do\n echo \"Waiting for Cache to start\"\n sleep 1\ndone \n")) + " | base64 -d >/root/start-cache.sh" +
"\nRUN echo " + base64.StdEncoding.EncodeToString([]byte("#!/bin/sh\n/root/software/system-java/bin/java -jar /root/software/build-request-processor/quarkus-run.jar "+doSubstitution(strings.Join(preprocessorArgs, " "), paramValues, commitTime, buildRepos)+"\n")) + " | base64 -d >/root/preprocessor.sh" +
"\nRUN echo " + base64.StdEncoding.EncodeToString([]byte(doSubstitution(build, paramValues, commitTime, buildRepos))) + " | base64 -d >/root/build.sh" +
Expand Down

0 comments on commit 2c8753d

Please sign in to comment.