Closed mihael97 closed 1 year ago
@mihael97 thanks for the feedback!
on the CI the native image is getting exercised with https://github.com/findepi/graalvm-docker/blob/master/bin/test-native.sh. Of course, this simplistic test doesn't need this env variable. Would you like to help me understand when it's needed? Would be good to have validation that things indeed work as expected.
Hi @findepi , below is a working example.
Without exported JAVA_HOME
- failing:
But, with exported JAVA_HOME
, everything works and the application is compiled successfully.
I am trying to compile native image of Spring Boot(version 3.0.2) application
@mihael97 sorry for the delay here. Can you please confirm https://github.com/findepi/graalvm-docker/pull/14 is exactly what you need?
Hi @findepi , this looks OK and I think it will fix the issue. Thanks!
Thanks @mihael97 for confirming & once again thank you for reporting the issue!
Hello!
During native build compilation inside CI/CD, I need to manually add the
JAVA_HOME
export.It would be helpful if the variable is exported by default. I am open to contributing to the implementation.