Hi Chris, I like this idea and have been thinking of a number of other improvements we could make for container images of Apache NiFi, including (I think discussed on another thread) consolidating Dockerfiles for dockerhub / dockermaven, as the only significant difference is where the nifi assembly archive comes from, arm64 images that run native on ARM platforms, including newer M1 Macs (requires some minor changes to NiFi source itself to compile).
I’ve started a Wiki page [1] to collect ideas, and once we reach consensus on the improvements we’d like to make and possible approaches, we can turn these into Jiras. [1] https://cwiki.apache.org/confluence/display/NIFI/NiFi+Docker+Container+Improvements Thanks! Kevin > On Nov 26, 2021, at 07:46, Chris Sampson <chris.samp...@naimuri.com.INVALID> > wrote: > > I'm not sure whether I've seen this discussed previously, but I thought it > worth asking whether we could/should publish a JDK 11 based version of the > apache/nifi Docker Image to Docker Hub as part of the release process in > future? > > I realise NiFi 1.x is/will remain based on JDK 8 but with all the work gone > into enabling JDK 11 compilation and deployment, along with the planned > move to JDK 11 in the future for NiFi 2.x, it would seem sensible to start > making it easier for people to move towards using JDK 11 now that it's > available. > > The Dockerfiles used to build NiFi (I've not looked at Toolkit, MiNiFi or > Registry) can be given a build ARG to use different base images/versions, > so it should be relatively straightforward to do this and maybe publish the > Image to Docker Hub as *apache/nifi:<version>-jdk11*? > > Users can, of course, download the NiFi source to build this image > themselves, but to make it easier for the community it would seem sensible > to consider the additional release artifact. This avoids lots of people > having to pull all of the code (it's not a small repo) or build the image, > which can take a long time, etc. > > > --- > *Chris Sampson* > IT Consultant > chris.samp...@naimuri.com