Skip to content

Commit 4804007

Browse files
authored
Update Docker images to Java 25 and Maven 3.9.12 (#1888)
1 parent 647d8fc commit 4804007

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

utils/docker/Dockerfile.jammy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ENV LC_ALL=C.UTF-8
1010
# === INSTALL JDK and Maven ===
1111

1212
RUN apt-get update && \
13-
apt-get install -y --no-install-recommends openjdk-21-jdk \
13+
apt-get install -y --no-install-recommends openjdk-25-jdk \
1414
# Install utilities required for downloading browsers
1515
wget \
1616
# Install utilities required for downloading driver
@@ -22,13 +22,13 @@ RUN apt-get update && \
2222
adduser pwuser
2323

2424
# Ubuntu 22.04 and earlier come with Maven 3.6.3 which fails with
25-
# Java 21, so we install latest Maven from Apache instead.
26-
RUN VERSION=3.9.6 && \
25+
# Java 25, so we install latest Maven from Apache instead.
26+
RUN VERSION=3.9.12 && \
2727
wget -O - https://archive.apache.org/dist/maven/maven-3/$VERSION/binaries/apache-maven-$VERSION-bin.tar.gz | tar zxfv - -C /opt/ && \
2828
ln -s /opt/apache-maven-$VERSION/bin/mvn /usr/local/bin/
2929

3030
ARG PW_TARGET_ARCH
31-
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk-${PW_TARGET_ARCH}
31+
ENV JAVA_HOME=/usr/lib/jvm/java-25-openjdk-${PW_TARGET_ARCH}
3232

3333
# === BAKE BROWSERS INTO IMAGE ===
3434

utils/docker/Dockerfile.noble

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ENV LC_ALL=C.UTF-8
1010
# === INSTALL JDK and Maven ===
1111

1212
RUN apt-get update && \
13-
apt-get install -y --no-install-recommends openjdk-21-jdk \
13+
apt-get install -y --no-install-recommends openjdk-25-jdk \
1414
# Install utilities required for downloading browsers
1515
wget \
1616
# Install utilities required for downloading driver
@@ -22,13 +22,13 @@ RUN apt-get update && \
2222
adduser pwuser
2323

2424
# Ubuntu 22.04 and earlier come with Maven 3.6.3 which fails with
25-
# Java 21, so we install latest Maven from Apache instead.
26-
RUN VERSION=3.9.6 && \
25+
# Java 25, so we install latest Maven from Apache instead.
26+
RUN VERSION=3.9.12 && \
2727
wget -O - https://archive.apache.org/dist/maven/maven-3/$VERSION/binaries/apache-maven-$VERSION-bin.tar.gz | tar zxfv - -C /opt/ && \
2828
ln -s /opt/apache-maven-$VERSION/bin/mvn /usr/local/bin/
2929

3030
ARG PW_TARGET_ARCH
31-
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk-${PW_TARGET_ARCH}
31+
ENV JAVA_HOME=/usr/lib/jvm/java-25-openjdk-${PW_TARGET_ARCH}
3232

3333
# === BAKE BROWSERS INTO IMAGE ===
3434

0 commit comments

Comments
 (0)