From 0a81411617209407d3e1e5dbafc552dc6266046d Mon Sep 17 00:00:00 2001 From: George Adams Date: Mon, 30 Oct 2023 14:03:47 +0000 Subject: [PATCH] further edits --- 11/jdk/alpine/Dockerfile | 9 ++++++--- 11/jdk/centos/Dockerfile | 3 +++ 11/jdk/ubi/ubi9-minimal/Dockerfile | 3 +++ 11/jdk/ubuntu/focal/Dockerfile | 3 +++ 11/jdk/ubuntu/jammy/Dockerfile | 3 +++ 11/jre/alpine/Dockerfile | 9 ++++++--- 11/jre/centos/Dockerfile | 3 +++ 11/jre/ubi/ubi9-minimal/Dockerfile | 3 +++ 11/jre/ubuntu/focal/Dockerfile | 3 +++ 11/jre/ubuntu/jammy/Dockerfile | 3 +++ 17/jdk/alpine/Dockerfile | 9 ++++++--- 17/jdk/centos/Dockerfile | 9 ++++++--- 17/jdk/ubi/ubi9-minimal/Dockerfile | 3 +++ 17/jdk/ubuntu/focal/Dockerfile | 3 +++ 17/jdk/ubuntu/jammy/Dockerfile | 3 +++ 17/jre/alpine/Dockerfile | 9 ++++++--- 17/jre/centos/Dockerfile | 9 ++++++--- 17/jre/ubi/ubi9-minimal/Dockerfile | 3 +++ 17/jre/ubuntu/focal/Dockerfile | 3 +++ 17/jre/ubuntu/jammy/Dockerfile | 3 +++ 21/jdk/alpine/Dockerfile | 9 ++++++--- 21/jdk/ubi/ubi9-minimal/Dockerfile | 3 +++ 21/jdk/ubuntu/jammy/Dockerfile | 3 +++ 21/jre/alpine/Dockerfile | 9 ++++++--- 21/jre/ubi/ubi9-minimal/Dockerfile | 3 +++ 21/jre/ubuntu/jammy/Dockerfile | 3 +++ 8/jdk/alpine/Dockerfile | 9 ++++++--- 8/jdk/centos/Dockerfile | 3 +++ 8/jdk/ubi/ubi9-minimal/Dockerfile | 3 +++ 8/jdk/ubuntu/focal/Dockerfile | 3 +++ 8/jdk/ubuntu/jammy/Dockerfile | 3 +++ 8/jre/alpine/Dockerfile | 9 ++++++--- 8/jre/centos/Dockerfile | 3 +++ 8/jre/ubi/ubi9-minimal/Dockerfile | 3 +++ 8/jre/ubuntu/focal/Dockerfile | 3 +++ 8/jre/ubuntu/jammy/Dockerfile | 3 +++ docker_templates/alpine-linux.Dockerfile.j2 | 9 ++++++--- docker_templates/centos.Dockerfile.j2 | 5 ++++- docker_templates/ubi9-minimal.Dockerfile.j2 | 3 +++ docker_templates/ubuntu.Dockerfile.j2 | 3 +++ 40 files changed, 154 insertions(+), 34 deletions(-) diff --git a/11/jdk/alpine/Dockerfile b/11/jdk/alpine/Dockerfile index ae7db4f31..539746161 100644 --- a/11/jdk/alpine/Dockerfile +++ b/11/jdk/alpine/Dockerfile @@ -27,10 +27,13 @@ ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' RUN set -eux; \ apk add --no-cache \ - # fontconfig and ttf-dejavu added to support serverside image generation by Java programs + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig ttf-dejavu \ - # java-cacerts added to support adding CA certificates to the Java keystore - java-cacerts \ + # utilities for keeping Alpine and OpenJDK CA certificates in sync + # https://github.com/adoptium/containers/issues/293 + ca-certificates p11-kit-trust \ # locales ensures proper character encoding and locale-specific behaviors using en_US.UTF-8 musl-locales musl-locales-lang \ tzdata \ diff --git a/11/jdk/centos/Dockerfile b/11/jdk/centos/Dockerfile index 2a7da4f90..0077aae26 100644 --- a/11/jdk/centos/Dockerfile +++ b/11/jdk/centos/Dockerfile @@ -37,6 +37,9 @@ RUN set -eux; \ # utilities for keeping Centos and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 ca-certificates \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ ; \ rm -rf /var/cache/yum diff --git a/11/jdk/ubi/ubi9-minimal/Dockerfile b/11/jdk/ubi/ubi9-minimal/Dockerfile index 5b7783862..0144ceb10 100644 --- a/11/jdk/ubi/ubi9-minimal/Dockerfile +++ b/11/jdk/ubi/ubi9-minimal/Dockerfile @@ -37,6 +37,9 @@ RUN set -eux; \ # utilities for keeping UBI and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 ca-certificates \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ glibc-langpack-en \ ; \ diff --git a/11/jdk/ubuntu/focal/Dockerfile b/11/jdk/ubuntu/focal/Dockerfile index 5e19dddba..69e88fe29 100644 --- a/11/jdk/ubuntu/focal/Dockerfile +++ b/11/jdk/ubuntu/focal/Dockerfile @@ -31,6 +31,9 @@ RUN set -eux; \ # curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 curl \ wget \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ # utilities for keeping Ubuntu and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 diff --git a/11/jdk/ubuntu/jammy/Dockerfile b/11/jdk/ubuntu/jammy/Dockerfile index 768b8cb0b..ac385a3e2 100644 --- a/11/jdk/ubuntu/jammy/Dockerfile +++ b/11/jdk/ubuntu/jammy/Dockerfile @@ -31,6 +31,9 @@ RUN set -eux; \ # curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 curl \ wget \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ # utilities for keeping Ubuntu and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 diff --git a/11/jre/alpine/Dockerfile b/11/jre/alpine/Dockerfile index 6d4adeeb0..edba1c287 100644 --- a/11/jre/alpine/Dockerfile +++ b/11/jre/alpine/Dockerfile @@ -27,10 +27,13 @@ ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' RUN set -eux; \ apk add --no-cache \ - # fontconfig and ttf-dejavu added to support serverside image generation by Java programs + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig ttf-dejavu \ - # java-cacerts added to support adding CA certificates to the Java keystore - java-cacerts \ + # utilities for keeping Alpine and OpenJDK CA certificates in sync + # https://github.com/adoptium/containers/issues/293 + ca-certificates p11-kit-trust \ # locales ensures proper character encoding and locale-specific behaviors using en_US.UTF-8 musl-locales musl-locales-lang \ tzdata \ diff --git a/11/jre/centos/Dockerfile b/11/jre/centos/Dockerfile index 587b7b4e4..14012d7f8 100644 --- a/11/jre/centos/Dockerfile +++ b/11/jre/centos/Dockerfile @@ -37,6 +37,9 @@ RUN set -eux; \ # utilities for keeping Centos and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 ca-certificates \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ ; \ rm -rf /var/cache/yum diff --git a/11/jre/ubi/ubi9-minimal/Dockerfile b/11/jre/ubi/ubi9-minimal/Dockerfile index c4e035009..d7361e574 100644 --- a/11/jre/ubi/ubi9-minimal/Dockerfile +++ b/11/jre/ubi/ubi9-minimal/Dockerfile @@ -37,6 +37,9 @@ RUN set -eux; \ # utilities for keeping UBI and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 ca-certificates \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ glibc-langpack-en \ ; \ diff --git a/11/jre/ubuntu/focal/Dockerfile b/11/jre/ubuntu/focal/Dockerfile index ea4368ec9..c4db3c18c 100644 --- a/11/jre/ubuntu/focal/Dockerfile +++ b/11/jre/ubuntu/focal/Dockerfile @@ -31,6 +31,9 @@ RUN set -eux; \ # curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 curl \ wget \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ # utilities for keeping Ubuntu and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 diff --git a/11/jre/ubuntu/jammy/Dockerfile b/11/jre/ubuntu/jammy/Dockerfile index edb289fdb..9041a9cfd 100644 --- a/11/jre/ubuntu/jammy/Dockerfile +++ b/11/jre/ubuntu/jammy/Dockerfile @@ -31,6 +31,9 @@ RUN set -eux; \ # curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 curl \ wget \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ # utilities for keeping Ubuntu and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 diff --git a/17/jdk/alpine/Dockerfile b/17/jdk/alpine/Dockerfile index 7799f2c94..db094836e 100644 --- a/17/jdk/alpine/Dockerfile +++ b/17/jdk/alpine/Dockerfile @@ -27,10 +27,13 @@ ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' RUN set -eux; \ apk add --no-cache \ - # fontconfig and ttf-dejavu added to support serverside image generation by Java programs + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig ttf-dejavu \ - # java-cacerts added to support adding CA certificates to the Java keystore - java-cacerts \ + # utilities for keeping Alpine and OpenJDK CA certificates in sync + # https://github.com/adoptium/containers/issues/293 + ca-certificates p11-kit-trust \ # locales ensures proper character encoding and locale-specific behaviors using en_US.UTF-8 musl-locales musl-locales-lang \ # jlink --strip-debug on 13+ needs objcopy: https://github.com/docker-library/openjdk/issues/351 diff --git a/17/jdk/centos/Dockerfile b/17/jdk/centos/Dockerfile index e2ee1630b..5dfd4da8c 100644 --- a/17/jdk/centos/Dockerfile +++ b/17/jdk/centos/Dockerfile @@ -29,6 +29,9 @@ RUN set -eux; \ yum install -y \ gzip \ tar \ + # jlink --strip-debug on 13+ needs objcopy: https://github.com/docker-library/openjdk/issues/351 + # Error: java.io.IOException: Cannot run program "objcopy": error=2, No such file or directory + binutils \ # curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 curl \ wget \ @@ -37,9 +40,9 @@ RUN set -eux; \ # utilities for keeping Centos and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 ca-certificates \ - # jlink --strip-debug on 13+ needs objcopy: https://github.com/docker-library/openjdk/issues/351 - # Error: java.io.IOException: Cannot run program "objcopy": error=2, No such file or directory - binutils \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ ; \ rm -rf /var/cache/yum diff --git a/17/jdk/ubi/ubi9-minimal/Dockerfile b/17/jdk/ubi/ubi9-minimal/Dockerfile index d89da570b..01c78abb9 100644 --- a/17/jdk/ubi/ubi9-minimal/Dockerfile +++ b/17/jdk/ubi/ubi9-minimal/Dockerfile @@ -37,6 +37,9 @@ RUN set -eux; \ # utilities for keeping UBI and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 ca-certificates \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ glibc-langpack-en \ ; \ diff --git a/17/jdk/ubuntu/focal/Dockerfile b/17/jdk/ubuntu/focal/Dockerfile index 0803e02ce..52658c84f 100644 --- a/17/jdk/ubuntu/focal/Dockerfile +++ b/17/jdk/ubuntu/focal/Dockerfile @@ -31,6 +31,9 @@ RUN set -eux; \ # curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 curl \ wget \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ # utilities for keeping Ubuntu and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 diff --git a/17/jdk/ubuntu/jammy/Dockerfile b/17/jdk/ubuntu/jammy/Dockerfile index 381969c72..af581c82c 100644 --- a/17/jdk/ubuntu/jammy/Dockerfile +++ b/17/jdk/ubuntu/jammy/Dockerfile @@ -31,6 +31,9 @@ RUN set -eux; \ # curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 curl \ wget \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ # utilities for keeping Ubuntu and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 diff --git a/17/jre/alpine/Dockerfile b/17/jre/alpine/Dockerfile index 3566c7fe1..95b31f5cd 100644 --- a/17/jre/alpine/Dockerfile +++ b/17/jre/alpine/Dockerfile @@ -27,10 +27,13 @@ ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' RUN set -eux; \ apk add --no-cache \ - # fontconfig and ttf-dejavu added to support serverside image generation by Java programs + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig ttf-dejavu \ - # java-cacerts added to support adding CA certificates to the Java keystore - java-cacerts \ + # utilities for keeping Alpine and OpenJDK CA certificates in sync + # https://github.com/adoptium/containers/issues/293 + ca-certificates p11-kit-trust \ # locales ensures proper character encoding and locale-specific behaviors using en_US.UTF-8 musl-locales musl-locales-lang \ # jlink --strip-debug on 13+ needs objcopy: https://github.com/docker-library/openjdk/issues/351 diff --git a/17/jre/centos/Dockerfile b/17/jre/centos/Dockerfile index 4a351d6c2..f4fb84647 100644 --- a/17/jre/centos/Dockerfile +++ b/17/jre/centos/Dockerfile @@ -29,6 +29,9 @@ RUN set -eux; \ yum install -y \ gzip \ tar \ + # jlink --strip-debug on 13+ needs objcopy: https://github.com/docker-library/openjdk/issues/351 + # Error: java.io.IOException: Cannot run program "objcopy": error=2, No such file or directory + binutils \ # curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 curl \ wget \ @@ -37,9 +40,9 @@ RUN set -eux; \ # utilities for keeping Centos and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 ca-certificates \ - # jlink --strip-debug on 13+ needs objcopy: https://github.com/docker-library/openjdk/issues/351 - # Error: java.io.IOException: Cannot run program "objcopy": error=2, No such file or directory - binutils \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ ; \ rm -rf /var/cache/yum diff --git a/17/jre/ubi/ubi9-minimal/Dockerfile b/17/jre/ubi/ubi9-minimal/Dockerfile index a8659f4b0..f105412fe 100644 --- a/17/jre/ubi/ubi9-minimal/Dockerfile +++ b/17/jre/ubi/ubi9-minimal/Dockerfile @@ -37,6 +37,9 @@ RUN set -eux; \ # utilities for keeping UBI and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 ca-certificates \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ glibc-langpack-en \ ; \ diff --git a/17/jre/ubuntu/focal/Dockerfile b/17/jre/ubuntu/focal/Dockerfile index a3be3da88..af8b34bcc 100644 --- a/17/jre/ubuntu/focal/Dockerfile +++ b/17/jre/ubuntu/focal/Dockerfile @@ -31,6 +31,9 @@ RUN set -eux; \ # curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 curl \ wget \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ # utilities for keeping Ubuntu and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 diff --git a/17/jre/ubuntu/jammy/Dockerfile b/17/jre/ubuntu/jammy/Dockerfile index ea4a8126c..60f614143 100644 --- a/17/jre/ubuntu/jammy/Dockerfile +++ b/17/jre/ubuntu/jammy/Dockerfile @@ -31,6 +31,9 @@ RUN set -eux; \ # curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 curl \ wget \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ # utilities for keeping Ubuntu and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 diff --git a/21/jdk/alpine/Dockerfile b/21/jdk/alpine/Dockerfile index b746c954a..527ebf3b0 100644 --- a/21/jdk/alpine/Dockerfile +++ b/21/jdk/alpine/Dockerfile @@ -27,10 +27,13 @@ ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' RUN set -eux; \ apk add --no-cache \ - # fontconfig and ttf-dejavu added to support serverside image generation by Java programs + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig ttf-dejavu \ - # java-cacerts added to support adding CA certificates to the Java keystore - java-cacerts \ + # utilities for keeping Alpine and OpenJDK CA certificates in sync + # https://github.com/adoptium/containers/issues/293 + ca-certificates p11-kit-trust \ # locales ensures proper character encoding and locale-specific behaviors using en_US.UTF-8 musl-locales musl-locales-lang \ # jlink --strip-debug on 13+ needs objcopy: https://github.com/docker-library/openjdk/issues/351 diff --git a/21/jdk/ubi/ubi9-minimal/Dockerfile b/21/jdk/ubi/ubi9-minimal/Dockerfile index e4be4c5b4..eea89e010 100644 --- a/21/jdk/ubi/ubi9-minimal/Dockerfile +++ b/21/jdk/ubi/ubi9-minimal/Dockerfile @@ -37,6 +37,9 @@ RUN set -eux; \ # utilities for keeping UBI and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 ca-certificates \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ glibc-langpack-en \ ; \ diff --git a/21/jdk/ubuntu/jammy/Dockerfile b/21/jdk/ubuntu/jammy/Dockerfile index bfbd016fa..f56c99dca 100644 --- a/21/jdk/ubuntu/jammy/Dockerfile +++ b/21/jdk/ubuntu/jammy/Dockerfile @@ -31,6 +31,9 @@ RUN set -eux; \ # curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 curl \ wget \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ # utilities for keeping Ubuntu and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 diff --git a/21/jre/alpine/Dockerfile b/21/jre/alpine/Dockerfile index 62b56f251..d34d1e345 100644 --- a/21/jre/alpine/Dockerfile +++ b/21/jre/alpine/Dockerfile @@ -27,10 +27,13 @@ ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' RUN set -eux; \ apk add --no-cache \ - # fontconfig and ttf-dejavu added to support serverside image generation by Java programs + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig ttf-dejavu \ - # java-cacerts added to support adding CA certificates to the Java keystore - java-cacerts \ + # utilities for keeping Alpine and OpenJDK CA certificates in sync + # https://github.com/adoptium/containers/issues/293 + ca-certificates p11-kit-trust \ # locales ensures proper character encoding and locale-specific behaviors using en_US.UTF-8 musl-locales musl-locales-lang \ # jlink --strip-debug on 13+ needs objcopy: https://github.com/docker-library/openjdk/issues/351 diff --git a/21/jre/ubi/ubi9-minimal/Dockerfile b/21/jre/ubi/ubi9-minimal/Dockerfile index 79dbb3c7a..aedbbd696 100644 --- a/21/jre/ubi/ubi9-minimal/Dockerfile +++ b/21/jre/ubi/ubi9-minimal/Dockerfile @@ -37,6 +37,9 @@ RUN set -eux; \ # utilities for keeping UBI and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 ca-certificates \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ glibc-langpack-en \ ; \ diff --git a/21/jre/ubuntu/jammy/Dockerfile b/21/jre/ubuntu/jammy/Dockerfile index 4248fed81..669087b10 100644 --- a/21/jre/ubuntu/jammy/Dockerfile +++ b/21/jre/ubuntu/jammy/Dockerfile @@ -31,6 +31,9 @@ RUN set -eux; \ # curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 curl \ wget \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ # utilities for keeping Ubuntu and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 diff --git a/8/jdk/alpine/Dockerfile b/8/jdk/alpine/Dockerfile index b553032ff..fcc1106e0 100644 --- a/8/jdk/alpine/Dockerfile +++ b/8/jdk/alpine/Dockerfile @@ -27,10 +27,13 @@ ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' RUN set -eux; \ apk add --no-cache \ - # fontconfig and ttf-dejavu added to support serverside image generation by Java programs + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig ttf-dejavu \ - # java-cacerts added to support adding CA certificates to the Java keystore - java-cacerts \ + # utilities for keeping Alpine and OpenJDK CA certificates in sync + # https://github.com/adoptium/containers/issues/293 + ca-certificates p11-kit-trust \ # locales ensures proper character encoding and locale-specific behaviors using en_US.UTF-8 musl-locales musl-locales-lang \ tzdata \ diff --git a/8/jdk/centos/Dockerfile b/8/jdk/centos/Dockerfile index ae2755594..9ae7c62cf 100644 --- a/8/jdk/centos/Dockerfile +++ b/8/jdk/centos/Dockerfile @@ -37,6 +37,9 @@ RUN set -eux; \ # utilities for keeping Centos and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 ca-certificates \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ ; \ rm -rf /var/cache/yum diff --git a/8/jdk/ubi/ubi9-minimal/Dockerfile b/8/jdk/ubi/ubi9-minimal/Dockerfile index db0895796..a3a096222 100644 --- a/8/jdk/ubi/ubi9-minimal/Dockerfile +++ b/8/jdk/ubi/ubi9-minimal/Dockerfile @@ -37,6 +37,9 @@ RUN set -eux; \ # utilities for keeping UBI and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 ca-certificates \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ glibc-langpack-en \ ; \ diff --git a/8/jdk/ubuntu/focal/Dockerfile b/8/jdk/ubuntu/focal/Dockerfile index 5bf1be677..efa73dfa0 100644 --- a/8/jdk/ubuntu/focal/Dockerfile +++ b/8/jdk/ubuntu/focal/Dockerfile @@ -31,6 +31,9 @@ RUN set -eux; \ # curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 curl \ wget \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ # utilities for keeping Ubuntu and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 diff --git a/8/jdk/ubuntu/jammy/Dockerfile b/8/jdk/ubuntu/jammy/Dockerfile index d45cb76ee..25c48609d 100644 --- a/8/jdk/ubuntu/jammy/Dockerfile +++ b/8/jdk/ubuntu/jammy/Dockerfile @@ -31,6 +31,9 @@ RUN set -eux; \ # curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 curl \ wget \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ # utilities for keeping Ubuntu and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 diff --git a/8/jre/alpine/Dockerfile b/8/jre/alpine/Dockerfile index 435bc3f25..801ae49ab 100644 --- a/8/jre/alpine/Dockerfile +++ b/8/jre/alpine/Dockerfile @@ -27,10 +27,13 @@ ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' RUN set -eux; \ apk add --no-cache \ - # fontconfig and ttf-dejavu added to support serverside image generation by Java programs + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig ttf-dejavu \ - # java-cacerts added to support adding CA certificates to the Java keystore - java-cacerts \ + # utilities for keeping Alpine and OpenJDK CA certificates in sync + # https://github.com/adoptium/containers/issues/293 + ca-certificates p11-kit-trust \ # locales ensures proper character encoding and locale-specific behaviors using en_US.UTF-8 musl-locales musl-locales-lang \ tzdata \ diff --git a/8/jre/centos/Dockerfile b/8/jre/centos/Dockerfile index 50a34051d..85d21a297 100644 --- a/8/jre/centos/Dockerfile +++ b/8/jre/centos/Dockerfile @@ -37,6 +37,9 @@ RUN set -eux; \ # utilities for keeping Centos and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 ca-certificates \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ ; \ rm -rf /var/cache/yum diff --git a/8/jre/ubi/ubi9-minimal/Dockerfile b/8/jre/ubi/ubi9-minimal/Dockerfile index af30e18e6..88a7ccfa9 100644 --- a/8/jre/ubi/ubi9-minimal/Dockerfile +++ b/8/jre/ubi/ubi9-minimal/Dockerfile @@ -37,6 +37,9 @@ RUN set -eux; \ # utilities for keeping UBI and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 ca-certificates \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ glibc-langpack-en \ ; \ diff --git a/8/jre/ubuntu/focal/Dockerfile b/8/jre/ubuntu/focal/Dockerfile index 08885d82f..c095ac7f9 100644 --- a/8/jre/ubuntu/focal/Dockerfile +++ b/8/jre/ubuntu/focal/Dockerfile @@ -31,6 +31,9 @@ RUN set -eux; \ # curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 curl \ wget \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ # utilities for keeping Ubuntu and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 diff --git a/8/jre/ubuntu/jammy/Dockerfile b/8/jre/ubuntu/jammy/Dockerfile index 2bf37107d..7d1bf244d 100644 --- a/8/jre/ubuntu/jammy/Dockerfile +++ b/8/jre/ubuntu/jammy/Dockerfile @@ -31,6 +31,9 @@ RUN set -eux; \ # curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 curl \ wget \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ # utilities for keeping Ubuntu and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 diff --git a/docker_templates/alpine-linux.Dockerfile.j2 b/docker_templates/alpine-linux.Dockerfile.j2 index b2c12bcc7..4dc73069b 100644 --- a/docker_templates/alpine-linux.Dockerfile.j2 +++ b/docker_templates/alpine-linux.Dockerfile.j2 @@ -6,10 +6,13 @@ FROM {{ base_image }} RUN set -eux; \ apk add --no-cache \ - # fontconfig and ttf-dejavu added to support serverside image generation by Java programs + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig ttf-dejavu \ - # java-cacerts added to support adding CA certificates to the Java keystore - java-cacerts \ + # utilities for keeping Alpine and OpenJDK CA certificates in sync + # https://github.com/adoptium/containers/issues/293 + ca-certificates p11-kit-trust \ # locales ensures proper character encoding and locale-specific behaviors using en_US.UTF-8 musl-locales musl-locales-lang \ {% include 'partials/binutils.j2' -%} diff --git a/docker_templates/centos.Dockerfile.j2 b/docker_templates/centos.Dockerfile.j2 index c4d65146e..00c8325fc 100644 --- a/docker_templates/centos.Dockerfile.j2 +++ b/docker_templates/centos.Dockerfile.j2 @@ -8,6 +8,7 @@ RUN set -eux; \ yum install -y \ gzip \ tar \ +{% include 'partials/binutils.j2' -%} {% if version|int < 22 -%} # curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 curl \ @@ -18,7 +19,9 @@ RUN set -eux; \ # utilities for keeping Centos and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 ca-certificates \ -{% include 'partials/binutils.j2' -%} + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ ; \ rm -rf /var/cache/yum diff --git a/docker_templates/ubi9-minimal.Dockerfile.j2 b/docker_templates/ubi9-minimal.Dockerfile.j2 index 4a5b7ffdc..d65346599 100644 --- a/docker_templates/ubi9-minimal.Dockerfile.j2 +++ b/docker_templates/ubi9-minimal.Dockerfile.j2 @@ -16,6 +16,9 @@ RUN set -eux; \ # utilities for keeping UBI and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293 ca-certificates \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ glibc-langpack-en \ ; \ diff --git a/docker_templates/ubuntu.Dockerfile.j2 b/docker_templates/ubuntu.Dockerfile.j2 index 8d8531b24..05dac147a 100644 --- a/docker_templates/ubuntu.Dockerfile.j2 +++ b/docker_templates/ubuntu.Dockerfile.j2 @@ -12,6 +12,9 @@ RUN set -eux; \ curl \ {% endif -%} wget \ + # java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory + # java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager + # https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 fontconfig \ # utilities for keeping Ubuntu and OpenJDK CA certificates in sync # https://github.com/adoptium/containers/issues/293