From 98f4a4b41cfaa415b32c5cca467409a60b286191 Mon Sep 17 00:00:00 2001 From: Simon Pahl Date: Thu, 23 Apr 2026 09:43:00 +0200 Subject: [PATCH] Update base image to Java 25 lts --- assemblies/docker/Dockerfile | 2 +- assemblies/docker/README.md | 2 +- assemblies/docker/build.sh | 2 +- .../src/main/java/org/apache/karaf/tooling/DockerfileMojo.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assemblies/docker/Dockerfile b/assemblies/docker/Dockerfile index 6abd52fd5a7..88fba9b4a58 100644 --- a/assemblies/docker/Dockerfile +++ b/assemblies/docker/Dockerfile @@ -16,7 +16,7 @@ # limitations under the License. ################################################################################ -FROM eclipse-temurin:11-jre +FROM eclipse-temurin:25-jre # Karaf environment variables ENV KARAF_INSTALL_PATH /opt diff --git a/assemblies/docker/README.md b/assemblies/docker/README.md index 74aab6051f2..69df1af3fb5 100644 --- a/assemblies/docker/README.md +++ b/assemblies/docker/README.md @@ -50,7 +50,7 @@ Usage: If the --image-name flag is not used the built image name will be 'karaf'. Check the supported build platforms; you can verify with this command: docker buildx ls - The supported platforms (OS/Arch) depend on the build's base image, in this case [eclipse-temurin:11-jre](https://hub.docker.com/_/eclipse-temurin). + The supported platforms (OS/Arch) depend on the build's base image, in this case [eclipse-temurin:25-jre](https://hub.docker.com/_/eclipse-temurin). ``` To create the docker image from local distribution) you can execute the command diff --git a/assemblies/docker/build.sh b/assemblies/docker/build.sh index 034f96c9328..86964b60220 100755 --- a/assemblies/docker/build.sh +++ b/assemblies/docker/build.sh @@ -27,7 +27,7 @@ Usage: If the --image-name flag is not used the built image name will be 'karaf'. Check the supported build platforms; you can verify with this command: docker buildx ls - The supported platforms (OS/Arch) depend on the build's base image, in this case [eclipse-temurin:11-jre](https://hub.docker.com/_/eclipse-temurin). + The supported platforms (OS/Arch) depend on the build's base image, in this case [eclipse-temurin:25-jre](https://hub.docker.com/_/eclipse-temurin). HERE exit 1 diff --git a/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/DockerfileMojo.java b/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/DockerfileMojo.java index 83fa290cb75..b691aa6288c 100644 --- a/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/DockerfileMojo.java +++ b/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/DockerfileMojo.java @@ -46,7 +46,7 @@ public void execute() throws MojoExecutionException, MojoFailureException { File dockerFile = new File(destDir, "Dockerfile"); try { StringBuilder buffer = new StringBuilder(); - buffer.append("FROM eclipse-temurin:11-jre").append("\n"); + buffer.append("FROM eclipse-temurin:25-jre").append("\n"); buffer.append("ENV KARAF_INSTALL_PATH /opt").append("\n"); buffer.append("ENV KARAF_HOME $KARAF_INSTALL_PATH/apache-karaf").append("\n"); buffer.append("ENV KARAF_EXEC exec").append("\n");