Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The current docker image openjdk:8-jre-alpine used by Kubernetes has many problems, here is some of them:
- There is no official support for this image since the commit https://github.com/docker-library/openjdk/commit/3eb0351b208d739fac35345c85e3c6237c2114ec#diff-f95ffa3d1377774732c33f7b8368e099
- DNS-lookup-5s-delay
- DNS resolver does not read /etc/hosts
- 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:
- It has official support from openjdk: https://github.com/docker-library/docs/blob/master/openjdk/README.md#supported-tags-and-respective-dockerfile-links
- It is based on debian and does not have many problems such as DNS lookup delay.
- It's much smaller in size than other official docker images.