Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ COPY --from=eclipse-temurin:17-jdk-resolute /opt/java/openjdk /usr/lib/jvm/17
COPY --from=eclipse-temurin:21-jdk-resolute /opt/java/openjdk /usr/lib/jvm/21
COPY --from=eclipse-temurin:25-jdk-resolute /opt/java/openjdk /usr/lib/jvm/25
COPY --from=temurin-latest /opt/java/openjdk /usr/lib/jvm/${LATEST_VERSION}
# Java 28 TODO: remove following line after GA
COPY --from=openjdk:28-ea-jdk-bookworm /usr/local/openjdk-28 /usr/lib/jvm/28

COPY --from=azul/zulu-openjdk:8 /usr/lib/jvm/zulu8 /usr/lib/jvm/zulu8
COPY --from=azul/zulu-openjdk:11 /usr/lib/jvm/zulu11 /usr/lib/jvm/zulu11
Expand Down Expand Up @@ -127,6 +129,8 @@ COPY --from=all-jdk /usr/lib/jvm/17 /usr/lib/jvm/17
COPY --from=all-jdk /usr/lib/jvm/21 /usr/lib/jvm/21
COPY --from=all-jdk /usr/lib/jvm/25 /usr/lib/jvm/25
COPY --from=all-jdk /usr/lib/jvm/${LATEST_VERSION} /usr/lib/jvm/${LATEST_VERSION}
# Java 28 TODO: remove following line after GA
COPY --from=all-jdk /usr/lib/jvm/28 /usr/lib/jvm/28

# Base image with minimum requirements to build the project.
# Based on the latest Ubuntu LTS image.
Expand Down Expand Up @@ -232,6 +236,8 @@ ENV JAVA_17_HOME=/usr/lib/jvm/17
ENV JAVA_21_HOME=/usr/lib/jvm/21
ENV JAVA_25_HOME=/usr/lib/jvm/25
ENV JAVA_${LATEST_VERSION}_HOME=/usr/lib/jvm/${LATEST_VERSION}
# Java 28 TODO: remove following line after GA
ENV JAVA_28_HOME=/usr/lib/jvm/28

ENV JAVA_HOME=${JAVA_8_HOME}
ENV PATH=${JAVA_HOME}/bin:${PATH}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Image variants are available on a per JDK basis:
- The `base` variant and its aliases — `8`, `11`, `17`, `21`, `25`, and `tip` — contain the base Eclipse Temurin JDK 8, 11, 17, 21, 25, and 27 releases. The `tip` alias currently refers to JDK 27.
- The `zulu8`, `zulu11`, `oracle8`, `ibm8`, `semeru8`, `semeru11`, `semeru17`, `graalvm17`, `graalvm21`, and `graalvm25` variants each contain the base JDKs in addition to the specific JDK from their name.
- The `latest` variant contains the base JDKs and all of the specific JDKs above.
- EA JDK `28` is currently being tested. <!-- Java 28 TODO: remove this line after GA -->

All variants are published as multi-arch manifests covering `linux/amd64` and `linux/arm64`, so the same tag (e.g. `base`, `zulu8`, `tip`) resolves to the correct image for the host architecture.
The `7` and `ibm8` variants are amd64-only because the upstream JDK images are not available for arm64;
Expand Down
6 changes: 4 additions & 2 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -eu

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

readonly BASE_VARIANTS=(8 11 17 21 25 tip)
readonly BASE_VARIANTS=(8 11 17 21 25 28 tip) # Java 28 TODO: move tip to 28 after GA

readonly ALL_VARIANTS=(
7
Expand All @@ -22,7 +22,7 @@ readonly ALL_VARIANTS=(
# Variants whose upstream JDK images are not published for arm64.
readonly AMD64_ONLY_VARIANTS=(7 ibm8)

readonly LATEST_VERSION="27"
readonly LATEST_VERSION="27" # Java 28 TODO: update to 28 after GA
readonly PLATFORM="${PLATFORM:-linux/amd64}"
readonly DIGESTS_DIR="${DIGESTS_DIR:-./digests}"

Expand Down Expand Up @@ -211,6 +211,8 @@ function do_inner_test() {
"$JAVA_21_HOME/bin/java" -version
"$JAVA_25_HOME/bin/java" -version
"${!java_latest_home}/bin/java" -version
# Java 28 TODO: remove following line after GA
"$JAVA_28_HOME/bin/java" -version
if [[ $variant != base && $variant != latest ]]; then
if [[ $variant == "tip" ]]; then
variant_lower="${LATEST_VERSION}"
Expand Down
3 changes: 2 additions & 1 deletion scripts/delete-test-mirror-entries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ set -euo pipefail

readonly SOURCE_PREFIX="ghcr.io/datadog/dd-trace-java-docker-build"
readonly DEST_REPO="dd-trace-java-docker-build"
readonly CI_VARIANTS=(base 7 8 11 17 21 25 tip zulu8 zulu11 oracle8 ibm8 semeru8 semeru11 semeru17 graalvm17 graalvm21 graalvm25)
# Java 28 TODO: move tip to 28 after GA
readonly CI_VARIANTS=(base 7 8 11 17 21 25 28 tip zulu8 zulu11 oracle8 ibm8 semeru8 semeru11 semeru17 graalvm17 graalvm21 graalvm25)
Comment thread
PerfectSlayer marked this conversation as resolved.
Resolved
Comment thread
PerfectSlayer marked this conversation as resolved.
Resolved

if ! [[ "${PR_NUMBER}" =~ ^[0-9]+$ ]]; then
echo "::error::PR_NUMBER must be numeric (got: '${PR_NUMBER}')" >&2
Expand Down
3 changes: 2 additions & 1 deletion scripts/get-image-digests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

set -euo pipefail

readonly CI_VARIANTS=(base 7 8 11 17 21 25 tip zulu8 zulu11 oracle8 ibm8 semeru8 semeru11 semeru17 graalvm17 graalvm21 graalvm25)
# Java 28 TODO: move tip to 28 after GA
readonly CI_VARIANTS=(base 7 8 11 17 21 25 28 tip zulu8 zulu11 oracle8 ibm8 semeru8 semeru11 semeru17 graalvm17 graalvm21 graalvm25)

# update_digest TAG DIGEST FILE
# Finds the line "source: ...:TAG" and updates the digest on the following line.
Expand Down
Loading