Skip to content

[java-docker] Add lightweight Zulu glibc variant - #5

Merged
rmannibucau merged 3 commits into
yupiik:mainfrom
rmannibucau:dev/java-docker-zulu
Nov 14, 2026
Merged

rmannibucau merged 3 commits into
yupiik:mainfrom
rmannibucau:dev/java-docker-zulu

Conversation

@rmannibucau

@rmannibucau rmannibucau commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add a lightweight Zulu Java 25 glibc variant to the existing java-docker image, without duplicating the build directory or publication workflow.

  • One Dockerfile, selected by VARIANT=alpine (default, existing Temurin runtime) or VARIANT=zulu (Debian bookworm-slim and verified official Azul JRE).
  • Share the static Docker CLI and final non-root runtime configuration; BuildKit skips the unused variant's stages.
  • Keep UID/GID 10001:10001, HOME=/tmp, no entrypoint, no daemon, no plugins and no compiler/development toolchain.
  • Pin the source image digests, both architecture-specific Azul archive SHA-256 values and signed Debian package snapshot.
  • One shared smoke suite and one workflow covering both variants on native AMD64 and ARM64 Ubuntu 26.04 runners.
  • Require secure directory handles for Zulu on tmpfs and a writable bind mount, including descriptor-relative access after directory replacement and rejection of file/directory symlinks. Alpine does not promise this capability.
  • Preserve Java/system CA trust and test hardened read-only, non-root execution without mounting a Docker socket.
  • Derive the published image version and variant directly from the Git release tag. No release-version files, allowlist or release helper scripts.
  • Remove the separate Zulu directory/workflow and tracked local evaluation report; local evaluation artifacts remain ignored.
  • Leave the other Java images unchanged.

Verification

  • Both consolidated variants built successfully on native AMD64 and passed hardened smoke tests, including Java HTTPS trust (HTTP 200).
  • Zulu secure-directory checks passed on both tmpfs and a writable bind mount.
  • Filesystem layers are identical to the corresponding pre-consolidation local images for both variants.
  • The Zulu JRE has no command-line or in-process Java compiler; download tooling stays outside the final image.
  • Inline workflow tag selection passed five valid cases (including new versions not present in Git) and eleven invalid cases; Bash syntax passed.
  • Actionlint passed with Ubuntu 26.04 runner labels explicitly registered in a temporary configuration because the pinned actionlint image's bundled runner list predates these labels. Unconfigured lint reports the unknown labels.
  • Whitespace checks passed.
  • Previous separate-Zulu CI passed native AMD64 and ARM64; those results do not validate this consolidated workflow. The updated four-job matrix must pass before merge/release.

Release (only after merge)

Unified Git release tag: java-docker/25.0.5.0.3-zulu-debian12-docker29.9.2.
Published image: ossyupiik/java-docker:25.0.5.0.3-zulu-debian12-docker29.9.2.

The workflow requires the release commit to be merged into main and all smoke jobs to succeed before publication. PRs, pushes to main and manual workflow invocations never publish an image.

No release tag, image publication or server deployment is part of this PR update. Merge remains with the maintainer; the published multi-platform index digest will be verified after release.

@rmannibucau
rmannibucau merged commit 13e63a5 into yupiik:main Nov 14, 2026
5 checks passed
@rmannibucau
rmannibucau deleted the dev/java-docker-zulu branch November 14, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants