-
Notifications
You must be signed in to change notification settings - Fork 2
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
Maven dont use the local maven repo #8
Comments
It does indeed look correct. I would propose executing maven with |
Could this step to fetch all the GAVs be wrong then or not complete ? container-images/maven-offline-repo/Dockerfile Lines 11 to 13 in 3451fcd
|
I haven't used that plugin so I don't really know to be honest. But like I said, adding |
I need then to change the docker image used as we cannot pass such a parameter at the moment |
That looks good to me
|
There should be more output right? |
I don't see the artifacts being downloaded from maven in those logs. Am I missing something? |
No need to use docker, pod. We can easily reproduce locally the issue Steps
|
This is because the previously downloaded GAVs have been stored/saved under the PVC mounted volume ;-) |
I discovered the issue. Some testing |
OK, I am running the command locally to see what happens |
When I tried the command with the proper paths specified, no artifacts were being downloaded |
I pushed an image including the missing GAVs needed for |
This is what I did and worked:
No dependencies were downloaded during the execution of the last command. |
But that happens within the pod managed by the supervisord ... |
Why would that make a difference? Isn't the pod still running, so the files should be intact, no? Also didn't you mention that you reproduced the problem locally? That is why I tried it. In any case since things work locally, the |
Hmhmhm. I still dont understand why the
|
Maybe it's a file system permission issue? |
As the owner is defined to
|
I don't know to be honest |
Me too and if I try to change the value of the |
I have no idea, either… |
I'm not sure but maybe this trick could help -> https://docs.openshift.com/container-platform/3.11/admin_guide/manage_scc.html#enable-images-to-run-with-user-in-the-dockerfile |
The problem is that the folder
even if the runtime image uses the maven offline image
So there is a mounting issue with the volume ... PV volumes used behind the PVC for the pod is also empty
Hospath on the ssh machine
|
Offline repo is well packaged within the image
|
FYI : First workaround to resolve the issue @metacosm @geoand If we remove the mounted volume from the Deployment yml reosurce, then the
Question: Should we mount the PVC for /tmp/artefacts when it is packaged with the docker image ? |
I don't have all the context here, but it seems like removing the mounted path fixes the problem, no? If so, I would just go with that |
Yes. I wondering if k8s allows to mount the content of an image within a pod and to also keep it under the PVC -> PV -> Host of the VM ??? |
I don't know for sure, but that doesn't sounds easy since what would happen if multiple pods wrote to the directory? |
Then we will have a big maven repo ;-) I joke. |
Issue
When we do a supervisord build using the spring boot maven offline image which contains under
/tmp/artefacts
path, the Maven Spring Boot GAVS, then maven pull again the GAVshttps://88.99.12.170:8443/console/project/quarkus-demo/browse/pods/spring-boot-rest-794bd99d74-x2xp7?tab=logs
Is the maven command used correct ? @metacosm @geoand
Content of the maven offline repo
Command executed within the pod by supervisord
The text was updated successfully, but these errors were encountered: