fdk-java icon indicating copy to clipboard operation
fdk-java copied to clipboard

Java 21 Support

Open nblomquist opened this issue 1 year ago • 1 comments

Is there any timeline for when Java 21 will be supported? I tried locating the base docker files so that I could try to update them myself, but I had no luck.

I looked here, but the latest is Java8: https://github.com/fnproject/dockers/tree/master/java

Thanks

nblomquist avatar Jan 06 '25 13:01 nblomquist

I was investigating this, and naive simple dockerfile for this is:

FROM eclipse-temurin:21-jre-ubi9-minimal
COPY --from=fnproject/fn-java-fdk:jre17-1.0-latest /function /function

ENTRYPOINT ["java", "-XX:-UsePerfData", "-XX:+UseSerialGC", "-Xshare:auto", "-Djava.awt.headless=true", "-Djava.library.path=/function/runtime/lib", "-cp", "/function/app/*:/function/runtime/*:/function/app:/function/app/resources",  "com.fnproject.fn.runtime.EntryPoint"]


nblomquist avatar Jan 12 '25 15:01 nblomquist