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

Use "full" OpenJDK image #23176

Merged
merged 1 commit into from
Jan 26, 2022
Merged

Conversation

cescoffier
Copy link
Member

and switch back to run-java to start the JVM application

@quarkus-bot quarkus-bot bot added area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/platform Issues related to definition and interaction with Quarkus Platform labels Jan 25, 2022
@gsmet gsmet marked this pull request as ready for review January 25, 2022 20:15
@gsmet
Copy link
Member

gsmet commented Jan 25, 2022

Marking this ready for review to trigger CI.

gsmet
gsmet previously requested changes Jan 25, 2022
Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are waiting for @maxandersen 's green light on this one.

@@ -20,16 +20,71 @@
#
# docker run -i --rm -p 8080:8080 quarkus/{project.artifact-id}-{type}
#
# This image uses the `run-java.sh` script to run the application.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These docs are fine by now but really should consider putting this in a guide somewhere and link to it instead.

{#if java.version == '11'}
ENV AB_JOLOKIA_OFF=""
{/if}
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JAVA_OPTIONS is standard Java vm env var.

What is the semantics of JAVA_OPTS here?

Copy link
Member

@maxandersen maxandersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - I can't find fault in these changes; but I found issues in openshift and container image deploy that made it hard/impossible to 100% verify - but afaics this specific change is in a good enough state to merge. if issues it would also be present with the current one in main.

@gsmet gsmet dismissed their stale review January 26, 2022 00:12

Dismissed.

@gsmet gsmet merged commit 18ad788 into quarkusio:main Jan 26, 2022
@quarkus-bot quarkus-bot bot added this to the 2.8 - main milestone Jan 26, 2022
@gsmet gsmet modified the milestones: 2.8 - main, 2.7.0.Final Jan 26, 2022
@jorsol
Copy link
Contributor

jorsol commented Feb 2, 2022

I'm curious to know the reasoning about using the full OpenJDK image instead of the runtime... is the runtime image not compatible/supported with Quarkus?

On a side note, the Migration-Guide-2.7 should also be updated.

@maxandersen
Copy link
Member

It is. It's just that the runtime image was planned to have run-java by now to simplify /unify how debug and memory settings were handled.

That unfortunately didn't make it in yet so instead of breaking "apis" for a period we moved to the full image.

Intention is 100% to move to smaller image by default when we can.

You can in your own customization of container build choose to just use the runtime image or some other image that has a java runtime.

@cescoffier cescoffier deleted the use-images-with-run-java branch March 15, 2022 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/platform Issues related to definition and interaction with Quarkus Platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants