From 98b8462fd7e569ec6c16362c68fb6558d22e7cc8 Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Thu, 14 Nov 2024 20:04:47 +0100 Subject: [PATCH] mounting cache dir at /home/go --- images/go-1-23-2/Dockerfile | 1 + resources/podtemplates/go-1-23-2.yaml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/images/go-1-23-2/Dockerfile b/images/go-1-23-2/Dockerfile index 5f07c2e..7ff1037 100644 --- a/images/go-1-23-2/Dockerfile +++ b/images/go-1-23-2/Dockerfile @@ -22,5 +22,6 @@ RUN addgroup -g 1000 ci && \ adduser ci docker-external USER ci +RUN ln -s ~ci/cache/go ~ci/go ENTRYPOINT ["tail", "-f", "/dev/null" ] diff --git a/resources/podtemplates/go-1-23-2.yaml b/resources/podtemplates/go-1-23-2.yaml index ba45fb7..3d72106 100644 --- a/resources/podtemplates/go-1-23-2.yaml +++ b/resources/podtemplates/go-1-23-2.yaml @@ -8,6 +8,11 @@ spec: volumeMounts: - name: run mountPath: /run + - name: cache + mountPath: /home/ci/cache volumes: - name: run emptyDir: {} + - name: cache + persistentVolumeClaim: + claimName: jenkins-cache -- 2.31.1