-
Notifications
You must be signed in to change notification settings - Fork 10
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
Graal Native Image build of project created with Micronaut Launch fails #154
Comments
Adding the following to nativeImage {
args = [
'--initialize-at-run-time=io.netty.handler.ssl.OpenSsl,io.netty.handler.ssl.OpenSslPrivateKeyMethod,io.netty.internal.tcnative.CertificateVerifier,io.netty.internal.tcnative.SSL,io.netty.internal.tcnative.SSLPrivateKeyMethod'
]
} Can you please test it on your side and make sure the execution of the let's encrypt stuff works (sorry but I can't test that part) |
Thanks @ilopmar! I'll add it to both my sample project (to test the build) and to my real project (to test both build and usage) and let you know. |
These were recommended by @ilopmar in a comment on micronaut-acme Issue 154: micronaut-projects/micronaut-acme#154 (comment)
I added msgilligan/micronaut-acme-sample@9e13215 and now the native build works: https://github.com/msgilligan/micronaut-acme-sample/actions/runs/990917723 |
These were recommended by @ilopmar in a comment on micronaut-acme Issue 154: micronaut-projects/micronaut-acme#154 (comment)
@ilopmar I added the |
@msgilligan Thanks for the update. Once you test the full handshake of renewing the certificate, let me know and I'll include the configuration in this module so it works for everyone without adding the config in the application. |
I'm working on it today. (Ignore the comment I previously posted and deleted -- it was a false alarm) |
Maybe it wasn't a false alarm. I'm seeing the following error with the graalvm version of my docker image, but I have things working with the JIT version:
|
I should also mention that after the certificate is generated, I can switch back to the graalvm version and the server still works. I also noticed that I can't access the server via Debian's |
The error:
Is because the Please create the file {
"resources": [
{ "pattern": "\\Qorg/shredzone/acme4j/version.properties\\E" }
]
} And create the native image again. That config should include that missing |
Awesome! I'll include those changes in this module so it works for everyone. |
* Upgrade to Micronaut 2.5.8 * Upgrade Micronaut Test 2.3.6 * Upgrade Groovy and Spock * Upgrade Gradle to 7.1.1 * Upgrade acme version to 2.12 * New major version targeting micronaut 3.0 * Use Micronaut nullability annotations * Switch to Jakarta annotations * Add support for GraalVM Fixes #154 * Initialize missing class at run-time for GraalVM support
@msgilligan I've released |
Awesome @ilopmar ! |
./gradlew nativeImage
results inClasses that should be initialized at run time got initialized during image building
Steps to Reproduce
./gradlew nativeImage
Expected Behaviour
A Graal Native image (executable should be built)
Actual Behaviour
For complete build results in a Github Actions environment, see:
https://github.com/msgilligan/micronaut-acme-sample/actions/runs/987817985
Environment Information
Example Application
https://github.com/msgilligan/micronaut-acme-sample
The text was updated successfully, but these errors were encountered: