Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-17033

Upgrade OpenJDK docker image for Kubernetes

    XMLWordPrintableJSON

Details

    Description

      The current docker image openjdk:8-jre-alpine used by Kubernetes has many problems, here is some of them:

      1. There is no official support for this image since the commit https://github.com/docker-library/openjdk/commit/3eb0351b208d739fac35345c85e3c6237c2114ec#diff-f95ffa3d1377774732c33f7b8368e099
      2. DNS-lookup-5s-delay
      3. DNS resolver does not read /etc/hosts
      4. It uses musl libc instead of glibc. This could cause a problem if we want to run native library like intel MKL for native BLAS support

      Therefore, this ticket proposes to investigate an alternative official JDK docker image; I think it's a good choice to use openjdk:8-jre-slim(184MB) instead, the reasons are as follows:

      1. It has official support from openjdk: https://github.com/docker-library/docs/blob/master/openjdk/README.md#supported-tags-and-respective-dockerfile-links
      2. It is based on debian and does not have many problems such as DNS lookup delay.
      3. It's much smaller in size than other official docker images.

      Attachments

        Activity

          People

            Unassigned Unassigned
            felixzheng Canbin Zheng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: