Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Support for JRE 11 #85

Open
banzo opened this issue Sep 29, 2020 · 6 comments
Open

Support for JRE 11 #85

banzo opened this issue Sep 29, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@banzo
Copy link
Contributor

banzo commented Sep 29, 2020

The current chart uses the apache/nifi image based on OpenJDK 8 JRE, it would be nice if it can provide JRE 11.

@banzo
Copy link
Contributor Author

banzo commented Sep 29, 2020

There is a recent PR for this at apache/nifi#4460

@banzo banzo added the enhancement New feature or request label Sep 29, 2020
@MikeThomsen
Copy link

@banzo we don't really track issues raised here. That's done in the ASF Jira.

@banzo
Copy link
Contributor Author

banzo commented Oct 1, 2020

I understand, this issue is just a way for us to prepare for the chart adaptation once the official Docker image is updated.

@banzo
Copy link
Contributor Author

banzo commented Feb 4, 2022

More information at https://issues.apache.org/jira/browse/NIFI-9188

Java 11 is a release goal for NiFi version 2.0

@cnoelle
Copy link

cnoelle commented Feb 4, 2022

Meanwhile, as a quick and dirty workaround, one could provide a custom extension of the official image by installing Java 11 into the container and removing Java 8. This adds more layers to the image and probably makes it considerably larger than it would need to be, though.

Here is what the Dockerfile could look like:

FROM apache/nifi:1.15.3
USER root
RUN apt-get update && \
   apt-get install -y openjdk-11-jre && \
   rm -rf /usr/local/openjdk-8
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
USER nifi

@banzo banzo mentioned this issue Feb 16, 2022
@jrebmann
Copy link
Contributor

Java 11 is supported since apache/nifi:1.19.0 so it will be working after merging PR #314.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants