Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache mount paths #2481

Closed
2020testuser opened this issue May 20, 2020 · 1 comment
Closed

cache mount paths #2481

2020testuser opened this issue May 20, 2020 · 1 comment

Comments

@2020testuser
Copy link

@chanseokoh - Could you please confirm on the below?
I'm using a PVC ( in Kubernetes) to store my application source (pulled from git).
In my gradle command below (in my Tekton Pipeline), I'm passing --gradle-user-home=/workspace/.gradle as you recommended (to resolve permission issues) since I'm using gradle image which runs as user-gradle by default.

gradle build testapp:jib --gradle-user-home=workspace/.gradle --build-cache -Duser.home=/workspace

I believe I don't need the below volume mounts as my /.gradle is under /workspace/.gradle. I had to change the mountpaths to /workspace/.gradle below. Is that correct? Also, since, /workspace is in PVC, caching these in PVC, would improve my build performance.
Since, I used the tekton catalog's jib, these volumemounts are in my pipeline. Thanks in advance!

volumeMounts: - name: $(params.cache) mountPath: /tekton/home/.gradle/caches subPath: gradle-caches - name: $(params.cache) mountPath: /tekton/home/.gradle/wrapper subPath: gradle-wrapper - name: $(params.cache) mountPath: /tekton/home/.m2 subPath: m2-cache - name: $(params.cache) mountPath: /tekton/home/.cache subPath: jib-cache

Originally posted by @2020testuser in #2437 (comment)
/kind/question

@chanseokoh
Copy link
Member

Closing as a dup of #2437 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants