Skip to content

feat(docker): support alternate authenticated JDK downloads - #113

Merged
amuraru merged 4 commits into
masterfrom
feat/alternate-java-downloads
Nov 18, 2026
Merged

amuraru merged 4 commits into
masterfrom
feat/alternate-java-downloads

Conversation

@amuraru

@amuraru amuraru commented Nov 18, 2026 •

Copy link
Copy Markdown

Change log description

  • Support alternate JDK downloads with optional authentication.
  • Keep Java 25 as the shared runtime and compilation default.

Purpose of the change

Bring authenticated Java downloads from adobe/koperator#403 to ZooKeeper images.

What the code does

Adds configurable JDK sources/versions, BuildKit secret authentication and mandatory SHA-256 verification. Uses Debian Trixie for curl support. Java/Kotlin targets follow the selected runtime; bare Gradle builds read the default from the base Dockerfile.

How to verify it

Passed locally:

  • ./gradlew build --no-daemon - Java 25.
  • ./gradlew -PjavaVersion=21 build --no-daemon - Java 21 override.
  • python3 -B -m unittest discover -s scripts -p 'test_*.py' - 35 tests.
  • Full image builds and live ZooKeeper/zu checks: Java 25 (arm64), authenticated Java 21 (amd64).

Go/controller and Kubernetes e2e suites not run.

amuraru and others added 4 commits November 18, 2026 12:22
Port alternate Java download sources and optional BuildKit-secret authentication from adobe/koperator#403. Upgrade the ZooKeeper base image to Debian Trixie while retaining Oracle and Java 25 defaults.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use the documented major-only layout for alternate JDK mirrors. Compile the zu helper to Java 21 bytecode while retaining JDK 25 as the builder and default runtime, and keep image descriptions accurate for alternate runtimes.

Validated the complete amd64 image with authenticated Oracle JDK 21.0.13.1+4 downloads, ZooKeeper startup and live zu client access.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep java_version in the base Dockerfile as the single runtime setting. Read the selected base JDK release metadata in the native helper builder and use one Gradle property for Java source/target compatibility and the Kotlin JVM target.

Verified full Java 21 and Java 25 image builds, matching helper bytecode versions, ZooKeeper startup and live helper operations; all 35 build-script tests pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Default javaVersion lazily from the base Dockerfile when no explicit Gradle property is supplied. This restores the CodeQL ./gradlew build command while retaining Java 25 as the shared runtime and compilation default. Docker builds continue to derive targets from the selected base image.

Verified bare Gradle build, explicit Java 21 override, full Java 25 image/runtime smoke tests and 35 script regression tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@amuraru amuraru added the e2e label Nov 18, 2026
@amuraru
amuraru merged commit 4b580e5 into master Nov 18, 2026
19 checks passed
@amuraru
amuraru deleted the feat/alternate-java-downloads branch November 18, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant