This repository provides the base Docker images for Java LTS versions Rocky Linux 8 and 9 that are meant to be used within the Alfresco engineering to build Docker images for Java applications.
Choose between one of the available flavours built from this repository:
Note: Java 25 uses Eclipse Temurin builds from the Adoptium project instead of distribution packages, as OpenJDK 25 packages are not yet available in Rocky Linux repositories.
The images are available on:
- Docker Hub, image name:
alfresco/alfresco-base-java - Quay (enterprise credentials required), image name:
quay.io/alfresco/alfresco-base-java
To ensure the propagation of security fixes from upstream projects, all supported tags are mutable and undergo periodic rebuilding.
The suggested approach is to pin the sha256 digest for best reproducibility in
your Dockerfile, for example:
FROM alfresco/alfresco-base-java:jre17-rockylinux9@sha256:b749868ceb42bd6f58ae2f143e8c16af4752fad7b40eb1085c014cbfcecb1ffcTo discover the latest image digest, just run docker pull <image-ref> and then
run docker images --digests.
$ docker pull alfresco/alfresco-base-java:jre17-rockylinux9 489e1be6ce56: Already exists 66defdfd2e26: Download complete 41c3b80bc03b: Download complete be4e433e73b5: Download complete docker.io/alfresco/alfresco-base-java:jre17-rockylinux9 $ docker images --digests REPOSITORY TAG DIGEST IMAGE ID CREATED SIZE alfresco/alfresco-base-java jre17-rockylinux9 sha256:b749868ceb42bd6f58ae2f143e8c16af4752fad7b40eb1085c014cbfcecb1ffc be4e433e73b5 14 minutes ago 410MB
This configuration approach is compatible with Dependabot.
Additional tags are being pushed for master releases, following the pattern
$tag-YYMMDDHHMM. Those tags are never overwritten and can be used as a more
intuitive approach. You can still use it in combination with digest for
increased security.
Quay.io doesn't retain previous images when a tag is overwritten, so using an immutable tag is mandatory in order to avoid getting
Manifest not founderror once a mutable tag get updated.
While any docker installation will produce valid images, building with BuildKit has proven being more efficient and clever with Multistage builds. If you are building images locally, we recommend enabling it.
The images built from this repository are named as follow:
<JAVA_DISTRIBUTION_TYPE><JAVA_MAJOR_VERSION>-<OS_DISTRIBUTION_NAME><OS_DISTRIBUTION_VERSION>
To build a local version of the base java image follow the instructions below:
BASE_IMAGE_NAME=rockylinux/rockylinux BASE_IMAGE_TAG=9 DISTRIB_MAJOR=9 JAVA_MAJOR=25 JDIST=jre docker build -t alfresco-base-java . \ --build-arg BASE_IMAGE_NAME=$BASE_IMAGE_NAME \ --build-arg BASE_IMAGE_TAG=$BASE_IMAGE_TAG \ --build-arg DISTRIB_MAJOR=$DISTRIB_MAJOR \ --build-arg JAVA_MAJOR=$JAVA_MAJOR \ --build-arg JDIST=$JDIST \ --no-cache
New images are built automatically on each new commit on master and on a weekly schedule.
- What is a base image.
Known projects currently using the base image: