Skip to content

Commit 00ba2e2

Browse files
committed
Add OpenJDK 24
1 parent 0f5dad7 commit 00ba2e2

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Dockerfile

+7-4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ COPY --from=eclipse-temurin:8-jdk-jammy /opt/java/openjdk /usr/lib/jvm/8
77
COPY --from=eclipse-temurin:11-jdk-jammy /opt/java/openjdk /usr/lib/jvm/11
88
COPY --from=eclipse-temurin:17-jdk-jammy /opt/java/openjdk /usr/lib/jvm/17
99
COPY --from=eclipse-temurin:21-jdk-jammy /opt/java/openjdk /usr/lib/jvm/21
10+
COPY --from=openjdk:24-jdk /usr/java/openjdk-24 /usr/lib/jvm/24
1011

1112
COPY --from=azul/zulu-openjdk:7 /usr/lib/jvm/zulu7 /usr/lib/jvm/7
1213
COPY --from=azul/zulu-openjdk:8 /usr/lib/jvm/zulu8 /usr/lib/jvm/zulu8
@@ -56,15 +57,16 @@ COPY --from=all-jdk /usr/lib/jvm/8 /usr/lib/jvm/8
5657
COPY --from=all-jdk /usr/lib/jvm/11 /usr/lib/jvm/11
5758
COPY --from=all-jdk /usr/lib/jvm/17 /usr/lib/jvm/17
5859
COPY --from=all-jdk /usr/lib/jvm/21 /usr/lib/jvm/21
60+
COPY --from=all-jdk /usr/lib/jvm/24 /usr/lib/jvm/24
5961

60-
# Base image with minimunm requirenents to build the project.
62+
# Base image with minimum requirements to build the project.
6163
# Based on CircleCI Base Image with Ubuntu 22.04.3 LTS, present in most runners.
6264
FROM cimg/base:current-22.04 AS base
6365

6466
# https://docs.github.com/en/packages/learn-github-packages/connecting-a-repository-to-a-package
6567
LABEL org.opencontainers.image.source=https://github.com/DataDog/dd-trace-java-docker-build
6668

67-
# Replace Docker Compose and yq versions by latest and remove docker-switch from CircleCI Base Image for security purposes
69+
# Replace Docker Compose and yq versions by latest and remove docker-switch from CircleCI Base Image for security purposes.
6870
RUN <<-EOT
6971
set -eu
7072
dockerPluginDir=/usr/local/lib/docker/cli-plugins
@@ -107,15 +109,16 @@ EOT
107109
# IBM specific env variables
108110
ENV IBM_JAVA_OPTIONS="-XX:+UseContainerSupport"
109111

110-
#Set some odd looking variables, since their default values are wrong and it is unclear how they are used
112+
# Set some odd looking variables, since their default values are wrong and it is unclear how they are used.
111113
ENV JAVA_DEBIAN_VERSION=unused
112114
ENV JAVA_VERSION=unused
113115

114-
# Setup environment variables to point to all jvms we have
116+
# Set up environment variables to point to all jvms we have.
115117
ENV JAVA_8_HOME=/usr/lib/jvm/8
116118
ENV JAVA_11_HOME=/usr/lib/jvm/11
117119
ENV JAVA_17_HOME=/usr/lib/jvm/17
118120
ENV JAVA_21_HOME=/usr/lib/jvm/21
121+
ENV JAVA_24_HOME=/usr/lib/jvm/24
119122

120123
ENV JAVA_HOME=${JAVA_8_HOME}
121124
ENV PATH=${JAVA_HOME}/bin:${PATH}

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# dd-trace-java-docker-build
32

43
Docker images for continuous integration jobs at [dd-trace-java](https://github.com/datadog/dd-trace-java).
@@ -8,7 +7,7 @@ Docker images for continuous integration jobs at [dd-trace-java](https://github.
87
Pre-built images are available in [GitHub Container Registry](https://github.com/DataDog/dd-trace-java-docker-build/pkgs/container/dd-trace-java-docker-build).
98

109
Image variants are available on a per JDK basis:
11-
- The `base` variant, and its aliases `8`, `11`, `17` and `21`, contains the base Eclipse Temurin JDK 8, 11, 17 and 21 versions,
10+
- The `base` variant, and its aliases `8`, `11`, `17`, `21` and `24`, contains the base Eclipse Temurin JDK 8, 11, 17, 21 and 24 versions,
1211
- The `zulu8`, `zulu11`, `oracle8`, `ibm8`, `semeru8`, `semeru11`, `semeru17`, `graalvm17` and `graalvm21` variants all contain the base JDKs in addition to their specific JDK from their name,
1312
- The `latest` variant contains the base JDKs and all the above specific JDKs.
1413

build

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -eu
33

44
readonly IMAGE_NAME="ghcr.io/datadog/dd-trace-java-docker-build"
55

6-
readonly BASE_VARIANTS=(8 11 17 21)
6+
readonly BASE_VARIANTS=(8 11 17 21 24)
77

88
readonly VARIANTS=(
99
7
@@ -139,6 +139,7 @@ function do_inner_test() {
139139
"$JAVA_11_HOME/bin/java" -version
140140
"$JAVA_17_HOME/bin/java" -version
141141
"$JAVA_21_HOME/bin/java" -version
142+
"$JAVA_24_HOME/bin/java" -version
142143
if [[ $variant != base && $variant != latest ]]; then
143144
env_lower="JAVA_${variant_lower}_HOME"
144145
env_upper="JAVA_${variant_upper}_HOME"

0 commit comments

Comments
 (0)