-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Jib: respect JAVA_OPTIONS env var in entrypoint #12578
Comments
/cc @geoand |
Interesting, thanks! Do you have an example |
@geoand Actually the default base image #!/bin/sh
if [ -z "$JAVA_OPTIONS" ]; then
JAVA_OPTIONS="-Djava.util.logging.manager=org.jboss.logmanager.LogManager"
fi
java $JAVA_OPTIONS -jar quarkus-run.jar
`` |
Also what's the recommended way to add such custom entrypoint script? I have created a base image since I wanted to install |
What I mentioned above is actually part of the documentation now, so I'll close this |
Description
Containers created using
container-image-jib
should respect env varJAVA_OPTIONS
set for the container.Implementation ideas
"Standard" base images for Java have some sort of
run-java.sh
script that counselJAVA_OPTIONS
and pass these to the JVM. Jib does only usejava $(quarkus.jib.jvm-arguments) -jar quarkus-run.jar
wherequarkus.jib.jvm-arguments
is set at build time. That limits the options to use the entrypoint as-is.The text was updated successfully, but these errors were encountered: