-
Notifications
You must be signed in to change notification settings - Fork 104
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
[BUG] docker build fails when ECLIPSELINK arg is set to true #280
Comments
I think #227 might be relevant here? |
I see the PR is still open so I took the code from run.sh in that PR and copied it to my local. Tried running the build again but ran into same error. I apologize if that's not how it should be done, I am novice in Java. |
@manojmukkamala will check later today and see what is causing it. |
I also tried to work around it and it seems like some changes in the gradle build files is causing a circular dependency, I wasn't able to isolate it though. |
So 99d8eb7 is the one that caused this issue. You can use the following to do a build:
I can look into where the circular dependencies is happening later tonight. |
that worked, thanks a lot @MonkeyCanCode |
@manojmukkamala sure thing. So I raised a PR for helm in the past which I am using job to perform bootstrap: https://github.com/apache/polaris/pull/135/files#diff-922229e69535a3fb282010bf5c16aa261f558539c874ac0cf8205b5762790cf4 Now back to your question, the container will be running in
Alternative, you can use the following java -jar command as well:
|
thanks for the inputs. I entered the container I tried downloading the postgres jar from |
Hello, so this error is expected as Polaris itself doesn't package any jdbc driver which is actually needed when using a jdbc backend via eclipse link. This needs to be added as part of the EclipseLink build file instead. See more details in #230. |
ok so that means I have to wait a bit before I can start using the container based deployment with PG backend? |
Not really, here is what you can do:
Then build the image again. By doing so, your local image will then include the needed driver (in this case psql driver). |
Also, I think I found where the circular dependency is coming from. Let me run couple more validations before I raised a PR to ensure nothing break in between. |
cool! appreciate your prompt responses. |
@eric-maynard here is the PR for fixing this issue: #284 |
Anytime. Here is a sample PR to avoid manual edit as additional dependencies are needed when using ecliselink: https://github.com/apache/polaris/pull/285/files |
Is this a possible security vulnerability?
Describe the bug
Context: I am trying to use postgres as backend.
docker build fails when ECLIPSELINK arg is set to true.
I've added
persistence-new.xml
underpolaris-service/src/main/resources/META-INF/persistence-new.xml
and updatedpolaris-server.yml
as follows:When I remove the build-arg, the build was successful but the container cannot start with error:
To Reproduce
docker build . -t polaris_local_metastore --build-arg ECLIPSELINK=true
Actual Behavior
Expected Behavior
A successful build.
Additional context
NA
System information
Host: Mac OS
Docker Desktop: v4.34.0
The text was updated successfully, but these errors were encountered: