-
Notifications
You must be signed in to change notification settings - Fork 578
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
Jib-gradle not working on OpenShift #198
Comments
This wil fix the issue jib gradle task gettng failed on security constrained environments like OpenShift Fix tektoncd#198
This wil fix the issue jib gradle task gettng failed on security constrained environments like OpenShift Fix #198
We need to test this task (and overall all) with non-root, and be able to flag those that needs to be executed as root and those that do not. One easy fix to this one would be to add a |
I'd like to understand the root cause and why something breaks. Java applications (Maven, Gradle, and Jib) depend heavily on the user home directory, which changes as the user running the image changes. Note that we currently force |
It again failed on our CI
Is it possible to have something working on the non-root environment like OpenShift because the flag is not the right fix as you said and tests are failing on our CI which uses OpenShift? Sorry, I don't have much idea about Gradle and Jib, can we do something else to get it fixed, above are the log? The above issue you are mentioning will be fixed by 0.12 hopefully. |
@piyush-garg for now, I think you can plug in a writable volume for |
@chanseokoh I tried a RwadWriteOnce volume and it still fails |
I tried ReadWriteMany and that also fails with the same error @chanseokoh @vdemeester |
I think the underlying issue is a permission problem. That is, Gradle tries to create Given that, what would be an option you can think of to make this work on the OpenShift side? |
In the meantime, I will do some experiments, but this issue is heavily related to the Tekton HOME issue (tektoncd/pipeline#2013 and tektoncd/pipeline#2165). It may take some time for the Tekton devs and me to sort this out. I'll keep looking into it. |
We can run the pod as root that can be done @vdemeester WDYT? |
This will fix the issue of task not working on OpenShift as it needs root access and by default on OpenShift pod run as nonroot Fix tektoncd#198
@chanseokoh @vdemeester I have raised #214 please have a look. |
This will fix the issue of task not working on OpenShift as it needs root access and by default on OpenShift pod run as nonroot Fix tektoncd#198
This will fix the issue of task not working on OpenShift as it needs root access and by default on OpenShift pod run as nonroot Fix #198
This will fix the issue of task not working on OpenShift as it needs root access and by default on OpenShift pod run as nonroot Fix tektoncd#198 (cherry picked from commit 46bdfaf)
This will fix the issue of task not working on OpenShift as it needs root access and by default on OpenShift pod run as nonroot Fix tektoncd#198 (cherry picked from commit 46bdfaf)
Expected Behavior
Actual Behavior
Steps to Reproduce the Problem
Logs
Additional Info
The text was updated successfully, but these errors were encountered: