-
Notifications
You must be signed in to change notification settings - Fork 137
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
Image hono-service-device-registry-jdbc-native:2.4.0 not available #3555
Comments
I was going to try help a bit and run Hono integration tests with local native executable build against embedded H2 based JDBC native container to see if the issue still persists. But I faced some very likely Quarkus related native image creation issues and I will wait until issue [#3547] is resolved to see if updating Quarkus makes a difference. |
According to https://quarkus.io/version/3.2/guides/datasource#configure-datasources it should be possible to use H2 as well as PostgreSQL when compiling to native executables. https://quarkus.io/version/3.2/guides/datasource#jdbc-datasource seems to indicate that H2 should also work in embedded mode in a native executable. This hadn't been the case back in the days ... However, in order for all of this to work properly, I guess we (you?) would need to refactor the JDBC access layer to use a JDBC datasource provided by means of the H2 and/or PgSQL Quarkus extensions. IMHO that would be a great improvement because this would make compiling to native executables a much more pleasant experience since we would no longer need to configure the native build ourselves ... |
Nice work on finding the background for this issue and yes, I could very well take a look on this eventually if no one else does it sooner. |
@sophokles73 with the help of Quarkus 3.2 [#3547] and my initial work on Quarkus datasource migration [#3562] I was able to get some basic testing done with device registry native executable using H2. And it seems like the container/executable crashes hard as soon as a H2 connection is tried to open. And I am wondering already at this stage do the native executable containers have a normal Java file system access, do you happen to know? I will try H2 in-memory use later on, but this occurred to my already now. |
I have been able to run native integration tests with PostgreSQL and H2 JDBC device registry implementations. I prepare a pull request for these small changes very soon. |
closed via #3598 |
Hello, I've been trying out the native images and noticed that the Hono 2.4.0 native image for JDBC device registry is not available on Docker Hub. I didn't find a reason for this and am rather asking is there going to be native build for this component in the future?
Edit: The answer was too close to find apparently https://github.com/eclipse-hono/hono/blob/master/services/device-registry-jdbc/pom.xml#L183 - I just wonder is this comment still valid and in progress?
The text was updated successfully, but these errors were encountered: