-
Notifications
You must be signed in to change notification settings - Fork 52
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
AWS CRT .so libs are not copied to docker image #1561
Comments
The workaround that I've found out is to copy the Example: FROM debian:bookworm-slim
RUN mkdir -p /opt/app
COPY ./target/myproject-runner ./target/myproject-native-image-source-jar/*.so /opt/app/
RUN mv /opt/app/myproject-runner /opt/app/myproject && \
if ls /opt/app/*.so 1> /dev/null 2>&1; then \
chmod 755 /opt/app/*.so ; \
fi; ^ with this if it has the It would be good though if there was a way to fix that in the amazon services extension |
Interesting, shouldn't our native integration tests fail ? |
Didn't check the integration tests, but we just get that error during runtime, so native build passes, a request during runtime fails. And it should fail as the code for the lib loader changed and when running in native image it doesn't load the lib from resources anymore |
Got it, this is related to this upstream issue quarkusio/quarkus#41250. |
Yeah, maybe this is just adding to the docs that we need to copy the lib files when building the docker image, and we can also drop the inclusion of the lib as a resource during build time, with that we will decrease the final binary size |
Ever since upgrade to an AWS CRT version >= v0.31.0 which contains changes adding a GraalVM feature and changes how the library is loaded in native image, now we get exceptions with the following stack trace:
The text was updated successfully, but these errors were encountered: