Java 17?

100 views
Skip to first unread message

Eric Deandrea

unread,
Dec 3, 2021, 2:59:04 PM12/3/21
to Quarkus Development mailing list
Is there a Dockerfile.jvm available somewhere that uses Java 17?

-----------------------
Sent from a mobile device

George Gastaldi

unread,
Dec 3, 2021, 3:02:16 PM12/3/21
to Eric Deandrea, Quarkus Development mailing list
Yes, it's in the main branch, if you create a project using the 999-SNAPSHOT version using JDK 17 you'll get a JDK 17 Dockerfile.jvm in your project.

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAOTfCRWmdgoREv1QpPaexJKFay_Vee3BrrJchWz4JDM%3DGEWqqw%40mail.gmail.com.

Eric Deandrea

unread,
Dec 3, 2021, 3:57:00 PM12/3/21
to George Gastaldi, Quarkus Development mailing list
How do I create a project using the 999-SNAPSHOT version? I don't see that version on code.quarkus.io

Is it somewhere in the github repo I can look at?

-----------------------
Sent from a mobile device

Eric Deandrea
Sr. Principal Technical Marketing Manager
edea...@redhat.com
(978) 237-4727

Alexey Loubyansky

unread,
Dec 3, 2021, 4:27:30 PM12/3/21
to Eric Deandrea, George Gastaldi, Quarkus Development mailing list
Either it would have to be built from sources or you can try using the latest snapshot by adding the following Maven repo to your local Maven settings.xml


Then if you have the CLI installed: quarkus create -P io.quarkus:quarkus-bom:999-SNAPSHOT
If you don't have the CLI installed: mvn io.quarkus:quarkus-maven-plugin:999-SNAPSHT:create -DquarkusRegistryClient=false

Eric Deandrea

unread,
Dec 3, 2021, 5:02:30 PM12/3/21
to Alexey Loubyansky, George Gastaldi, Quarkus Development mailing list
There isn't a file or something checked into GitHub that I can just look at?


-----------------------
Sent from a mobile device

Eric Deandrea
Sr. Principal Technical Marketing Manager
edea...@redhat.com
(978) 237-4727

Alexey Loubyansky

unread,
Dec 3, 2021, 5:07:42 PM12/3/21
to Eric Deandrea, George Gastaldi, Quarkus Development mailing list

Eric Deandrea

unread,
Dec 3, 2021, 5:10:45 PM12/3/21
to Alexey Loubyansky, George Gastaldi, Quarkus Development mailing list
Thanks but that doesn't seem to be a complete Dockerfile. It's only a template. I'm more interested in the rest of what's in there.


-----------------------
Sent from a mobile device

Eric Deandrea
Sr. Principal Technical Marketing Manager
edea...@redhat.com
(978) 237-4727

Eric Deandrea

unread,
Dec 3, 2021, 5:19:28 PM12/3/21
to Alexey Loubyansky, George Gastaldi, Quarkus Development mailing list
I'm looking for what the java 17 equivalent of https://github.com/edeandrea/quarkus-super-heroes/blob/main/event-statistics/src/main/docker/Dockerfile.jvm would be.

I generated that recently from code.quarkus.io.


-----------------------
Sent from a mobile device

Eric Deandrea
Sr. Principal Technical Marketing Manager
edea...@redhat.com
(978) 237-4727

Alexey Loubyansky

unread,
Dec 3, 2021, 5:29:25 PM12/3/21
to Eric Deandrea, George Gastaldi, Quarkus Development mailing list
Here is what it generates

FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:1.10

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'

# Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size.
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"

# We make four distinct layers so if there are application changes the library layers can be re-used
COPY --chown=185 target/quarkus-app/lib/ /deployments/lib/
COPY --chown=185 target/quarkus-app/*.jar /deployments/
COPY --chown=185 target/quarkus-app/app/ /deployments/app/
COPY --chown=185 target/quarkus-app/quarkus/ /deployments/quarkus/

EXPOSE 8080
USER 185

ENTRYPOINT [ "java", "-jar", "/deployments/quarkus-run.jar" ]

Eric Deandrea

unread,
Dec 3, 2021, 5:33:56 PM12/3/21
to Alexey Loubyansky, George Gastaldi, Quarkus Development mailing list
Awesome. Thank you very much!


-----------------------
Sent from a mobile device

Eric Deandrea
Sr. Principal Technical Marketing Manager
edea...@redhat.com
(978) 237-4727
Reply all
Reply to author
Forward
0 new messages