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

Fix missing Graalvm native-image binary symlink in generated container image #1500

Merged
merged 6 commits into from
Feb 21, 2022

Conversation

kgston
Copy link
Contributor

@kgston kgston commented Feb 16, 2022

Closes #1492
Solution based on the monkeypatch provided by pshirshov
I decided to use a wildcard interpolation to get the correct folder for the symlink since there will only be one version of graalvm in the image anyway and trying to derive it from graalVMNativeImageGraalVersion which could contain variations on the base image version, would be difficult to parse accurately.

Also updates the graalvm base image version in the tests to the latest, otherwise the existing test would report a false positive using the old version.

@kgston kgston force-pushed the fix-graalvm-image-native-image branch from ef8ca9e to 57b9926 Compare February 16, 2022 17:20
@kgston kgston force-pushed the fix-graalvm-image-native-image branch 2 times, most recently from 01703a8 to e7fc4b9 Compare February 18, 2022 06:31
@muuki88 muuki88 added graalvm GraalVM releated issues patch release drafter version labels Feb 21, 2022
@muuki88
Copy link
Contributor

muuki88 commented Feb 21, 2022

THanks @kgston for fixing this long standing issue ❤️

@muuki88 muuki88 merged commit df35f5f into sbt:master Feb 21, 2022
@muuki88
Copy link
Contributor

muuki88 commented Feb 21, 2022

1.9.9 is on its way

@kgston kgston deleted the fix-graalvm-image-native-image branch February 21, 2022 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graalvm GraalVM releated issues patch release drafter version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GraalVMNativeImagePlugin produces broken docker images without native-image in the PATH
2 participants