-
Notifications
You must be signed in to change notification settings - Fork 6
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
Chore/update deps #638
Chore/update deps #638
Conversation
bartcharbon
commented
Oct 7, 2024
•
edited by dennishendriksen
Loading
edited by dennishendriksen
%post | ||
# install | ||
apk update | ||
apk add gcc zlib zlib-dev libc-dev gcompat libstdc++ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(some of) these libraries are only needed to build native images? if yes, they can be removed
%environment | ||
JAVA_HOME=/usr/lib/jvm/graalvm-community-openjdk-21.0.2+13.1 | ||
#workaround to solve "Unable to load jimage library" | ||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JAVA_HOME/lib/server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this workaround required when the image is not used to build native images?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, our images did not work without it
wget "https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-21.0.2/graalvm-community-jdk-21.0.2_linux-x64_bin.tar.gz"; \ | ||
tar -xzf graalvm-community-jdk-21.0.2_linux-x64_bin.tar.gz -C /usr/lib/jvm; \ | ||
rm -f graalvm-ce-21.0.2-linux-amd64.tar.gz | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add cleanup
# cleanup
apk del .build-dependencies
# install | ||
apk update | ||
apk add gcc zlib zlib-dev libc-dev gcompat libstdc++ | ||
apk add --virtual=.build-dependencies ca-certificates wget |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we keep ca-certificates
? see e.g. https://github.com/findepi/graalvm-docker/blob/master/Dockerfile
Co-authored-by: Dennis Hendriksen <d.hendriksen@umcg.nl>
Co-authored-by: Dennis Hendriksen <d.hendriksen@umcg.nl>