Skip to content
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

24 ensure application is working with native image #25

Merged

Conversation

clementguillot
Copy link
Owner

Before considering to build OCI images (#18), we need to ensure that API is working as expected when built with GraalVM's native-image.

This PR provides support for native-image.

Warning: Quarkus forces --link-at-build-time argument to native-image. But, this parameter causes troubles with AWS Kotlin SDK.
Since there is not yet a Quarkus flag to disable this GraalVM feature (quarkusio/quarkus#25526), we need to build using the following steps:

  1. Build native sources: ./gradlew :apps:api:build -Dquarkus.package.type=native-sources
  2. Remove --link-at-build-time from apps/api/build/native-sources/native-image.args
  3. Build native image native-image $(cat native-image.args)

Then, our binary should work as expected :)

@clementguillot clementguillot linked an issue Feb 9, 2024 that may be closed by this pull request
Copy link

sonarcloud bot commented Feb 9, 2024

@clementguillot clementguillot merged commit 275c0a0 into main Feb 9, 2024
4 checks passed
@clementguillot clementguillot deleted the 24-ensure-application-is-working-with-native-image branch March 20, 2024 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure application is working with native-image
1 participant