wurstmeister / kafka-docker

Dockerfile for Apache Kafka
http://wurstmeister.github.io/kafka-docker/
Apache License 2.0
6.89k stars 2.73k forks source link

Deprecation of "openjdk:11-jre-slim" #723

Open azieseme opened 1 year ago

azieseme commented 1 year ago

wurstmeister/kafka:2.13-2.8.1 image is based on openjdk:11-jre-slim. Please note the deprecation message at https://hub.docker.com/_/openjdk (target of removal seems to be Oct 2022): image

Instead of directly starting off with a PR, I'd like to understand which replacement would be the preferred choice for wurstmeister/kafka:

  1. Base on debian:bullseye-slim and add apt update; apt install -y openjdk-11-jdk ourselves?
  2. Consume AdoptOpenJDK successor https://hub.docker.com/_/eclipse-temurin
    1. and base on Ubuntu 22 with eclipse-temurin:11.0.16.1_1-jdk-jammy,
    2. or base on Alpine again with eclipse-temurin:11.0.16.1_1-jdk-alpine,
    3. or base on CentOS with eclipse-temurin:11.0.16.1_1-jdk-centos7?
  3. Or some other base or OpenJDK image?

Any preferences?

Also, a question could be if to stay with OpenJDK 11 for now or "invest" likely more effort moving to some later OpenJDK version? If so, which level?

I'm curious for your input. Thank you.

OneCricketeer commented 1 year ago

Temurin is the successor image, but I'd suggest keeping the same OS. Otherwise, other scripts in the container may need rewritten

amarkevich commented 1 year ago

PR https://github.com/wurstmeister/kafka-docker/pull/736