Skip to content

Commit 8cd0d1f

Browse files
committed
feat: Add Temunim JDK 21
1 parent bbe7a3f commit 8cd0d1f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ FROM cimg/base:edge-22.04 AS all-jdk
44
COPY --from=eclipse-temurin:8-jdk-jammy /opt/java/openjdk /usr/lib/jvm/8
55
COPY --from=eclipse-temurin:11-jdk-jammy /opt/java/openjdk /usr/lib/jvm/11
66
COPY --from=eclipse-temurin:17-jdk-jammy /opt/java/openjdk /usr/lib/jvm/17
7+
COPY --from=eclipse-temurin:21-jdk-jammy /opt/java/openjdk /usr/lib/jvm/21
78

89
COPY --from=azul/zulu-openjdk:7 /usr/lib/jvm/zulu7 /usr/lib/jvm/7
910
COPY --from=azul/zulu-openjdk:8 /usr/lib/jvm/zulu8 /usr/lib/jvm/zulu8
@@ -45,6 +46,7 @@ FROM scratch AS default-jdk
4546
COPY --from=all-jdk /usr/lib/jvm/8 /usr/lib/jvm/8
4647
COPY --from=all-jdk /usr/lib/jvm/11 /usr/lib/jvm/11
4748
COPY --from=all-jdk /usr/lib/jvm/17 /usr/lib/jvm/17
49+
COPY --from=all-jdk /usr/lib/jvm/21 /usr/lib/jvm/21
4850

4951
# Base image with minimunm requirenents to build the project.
5052
# Based on CircleCI Base Image with Ubuntu 22.04.3 LTS, present in most runners.
@@ -98,6 +100,7 @@ ENV JAVA_VERSION=unused
98100
ENV JAVA_8_HOME=/usr/lib/jvm/8
99101
ENV JAVA_11_HOME=/usr/lib/jvm/11
100102
ENV JAVA_17_HOME=/usr/lib/jvm/17
103+
ENV JAVA_21_HOME=/usr/lib/jvm/21
101104

102105
ENV JAVA_HOME=${JAVA_8_HOME}
103106
ENV PATH=${JAVA_HOME}/bin:${PATH}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Docker images for continuous integration jobs at [dd-trace-java](https://github.
88
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).
99

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

build

Lines changed: 2 additions & 1 deletion
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)
6+
readonly BASE_VARIANTS=(8 11 17 21)
77

88
readonly VARIANTS=(
99
7
@@ -144,6 +144,7 @@ function do_inner_test() {
144144
"$JAVA_8_HOME/bin/java" -version
145145
"$JAVA_11_HOME/bin/java" -version
146146
"$JAVA_17_HOME/bin/java" -version
147+
"$JAVA_21_HOME/bin/java" -version
147148
if [[ $variant != base && $variant != latest ]]; then
148149
env_lower="JAVA_${variant_lower}_HOME"
149150
env_upper="JAVA_${variant_upper}_HOME"

0 commit comments

Comments
 (0)