mosaicgreifswald/zulujre

By mosaicgreifswald

Updated 1 day ago

Image
Languages & frameworks
0

1.2K

mosaicgreifswald/zulujre repository overview

General

This layer is mainly needed for our mosaicgreifswald-images WildFly and jMeter, as only these require an installed Java. Only the slimmer JRE from Azul-Zulu is installed.

Relevant Entrypoints

Pathref. ENV-VariableTypePurpose
/entrypoint-java-cacertsENTRY_JAVA_CACERTSfilethe entrypoint can be used to store its own cacerts, e.g. containing public-keys of server certificates for specific web requests or CA.
/entrypoint-java-trustsENTRY_JAVA_TRUSTSdirat startup, all certificate files from here are imported into the Java truststore (cacerts) and existing aliases are replaced if necessary.

Relevant Build Arguments

VaraibleAvailable values or schemeDefaultPurpose
JAVA_VERSION<VALID_JAVA_MAJOR_VERSION>25Here you can modify the java version with which the image is to be built.

Usage (for the average consumer)

# build java-image
> cd mosaic-hgw/Docker/images/zulujre
> docker build --tag="mosaicgreifswald/zulujre" --file="Dockerfile.zulujre" .

# "versions" shows all installed tools and components, with their versions.
> docker run --rm mosaicgreifswald/zulujre versions
  last updated               : 2026-07-20 10:20:09
  Architecture               : x86_64
  Distribution               : Debian GNU/Linux 13.6 (trixie)
  zulu-jre                   : 25.0.3
  
# "entrypoints" lists all registered entrypoints.
> docker run --rm mosaicgreifswald/zulujre entrypoints
  ENTRY_LOGS                 : /entrypoint-logs
  ENTRY_USAGE                : /entrypoint-help-and-usage
  ENTRY_JAVA_CACERTS         : /entrypoint-java-cacerts
  ENTRY_JAVA_TRUSTS          : /entrypoint-java-trusts

# get java-version
> docker run --rm -it mosaicgreifswald/zulujre java -version
openjdk version "25.0.3" 2026-04-21 LTS

Usage with untrusted servers

# with already customized cacerts
> docker run --rm -v /path/to/your/custom-cacerts:/entrypoint-java-cacerts mosaicgreifswald/zulujre bash -c "\
    keytool -printcert -sslserver your-untrustet-server.example.com"

# or with separate public certificates
> docker run --rm -v /path/to/your/public-certificates:/entrypoint-java-trusts mosaicgreifswald/zulujre bash -c "\
    ./import_to_cacerts.sh && \
    keytool -printcert -sslserver your-untrustet-server.example.com"
10:06:27.340 start action jdk-trusts
10:06:27.596 Importing certificate '/entrypoint-java-trusts/your-untrustet-server.example.com.pem' (alias='your-untrustet-server.example.com')
Certificate was added to keystore
10:06:28.050 Importing certificate '/entrypoint-java-trusts/other-untrustet-server.example.com.pem' (alias='other-untrustet-server.example.com')
Certificate was added to keystore
10:06:28.491 Certificate import completed.

Note: If the image starts normally, import_to_cacerts.sh will run automatically.

Special usage, multiple java-versions (whoever needs it)

# build second java-image, based on the image above
> docker build --tag="mosaicgreifswald/zulujre:17-21" --file="Dockerfile.zulujre" --build-arg JAVA_VERSION=17 --build-arg TAG=mosaicgreifswald/zulujre:latest .

# show all versions (last installed java is per default selected as "current") 
> docker run --rm mosaicgreifswald/zulujre:17-21 versions
  last updated               : 2026-01-26 14:24:54
  Architecture               : x86_64
  Distribution               : Debian GNU/Linux 13.3 (trixie)
  zulu-jre                   : 21.0.10 
  zulu-jre                   : 17.0.18 (current)

> docker run --rm mosaicgreifswald/zulujre:17-21 java -version
openjdk version "17.0.18" 2026-01-20 LTS

# switch java-version per environment-variable
> docker run --rm -e JAVA_VERSION=21 mosaicgreifswald/zulujre:17-21 versions
  last updated               : 2026-01-26 14:24:54
  Architecture               : x86_64
  Distribution               : Debian GNU/Linux 13.3 (trixie)
  zulu-jre                   : 21.0.10 (current)
  zulu-jre                   : 17.0.18

> docker run --rm -e JAVA_VERSION=21 mosaicgreifswald/zulujre:17-21 java -version
openjdk version "21.0.10" 2026-01-20 LTS

# switch java-version in running container
> docker run --rm -it mosaicgreifswald/zulujre:17-21 bash
> java -version
openjdk version "17.0.18" 2026-01-20 LTS

> JAVA_VERSION=21 java -version
openjdk version "21.0.10" 2026-01-20 LTS

Current Software-Versions on this Image

DateTagsChanges
2026-07-20

25.0.3, 25, latest

Debian 13.6 "trixie"
Java 25.0.3
2026-05-20

25.0.3
(Dockerfile)
Debian 13.5 "trixie"
Java 25.0.3
2026-05-20

21.0.11, 21
(Dockerfile)
Debian 13.5 "trixie"
Java 21.0.11
2026-02-04



21.0.10
(Dockerfile)


Debian 13.3 "trixie"
Java 21.0.10
fixed signal forwarding
added new handling with public certificates
2026-01-26

21.0.10

Debian 13.3 "trixie"
Java 21.0.10
2025-10-29

21.0.9

Debian 13.1 "trixie"
Java 21.0.9
2025-07-22

21.0.8

Debian 12.11 "bookworm"
Java 21.0.8
2025-04-25

21.0.7
(Dockerfile)
Debian 12.10 "bookworm"
Java 21.0.7
2025-01-24

21.0.6

Debian 12.9 "bookworm"
Java 21.0.6
2025-01-13

21.0.5

Debian 12.8 "bookworm"
Java 21.0.5
2024-09-09

21.0.4
(Dockerfile)
Debian 12.7 "bookworm"
Java 21.0.4
2024-03-05

21.0.2

Debian 12.5 "bookworm"
Java 21.0.2
2023-12-1121.0.1Java 21.0.1
2023-12-1117.0.9-1, 17Debian 12.4 "bookworm"
2023-10-30

17.0.9

Debian 12.2 "bookworm"
Java 17.0.9
2023-09-28

17.0.8.1

Debian 12.1 "bookworm"
Java 17.0.8.1
2023-04-25

17.0.7
(Dockerfile)
Debian 11.6 "bullseye"
Java 17.0.7

Tag summary

Content type

Image

Digest

sha256:2b9941bf3

Size

99.6 MB

Last updated

1 day ago

docker pull mosaicgreifswald/zulujre:25.0.3