Skip to content

Take the Java runtime from eclipse-temurin in a multi-stage build - #35

Merged
retog merged 1 commit into
mainfrom
java-from-temurin
Sep 29, 2026
Merged

retog merged 1 commit into
mainfrom
java-from-temurin

Conversation

@retog

@retog retog commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

The Docker build currently fails at apt install -y git openjdk-17-jre-headless (exit code 100); see the build job of #34, which does not touch the Dockerfile. Which OpenJDK packages are installable depends on the Debian release under denoland/deno, so the Java install can break without any change in this repo.

This takes the JRE from eclipse-temurin:21-jre in a separate build stage instead:

  • copy /opt/java/openjdk into the Deno image, set JAVA_HOME and PATH
  • RUN java -version fails the build early if the copied runtime does not start
  • apt now only installs git

Jena 5 (riot, called by src/validate_everything.bash) requires Java 17+, so 21 LTS works. Both images are glibc-based, so the runtime works in the Deno image.

Not built locally (no Docker in this environment); this PR's CI run is the check. #34 will be rebased onto this branch.

🤖 Generated with Claude Code

The image build fails at `apt install openjdk-17-jre-headless` (exit
code 100): which OpenJDK packages exist depends on the Debian release
under the Deno image, so the Java install broke without any change
here. Jena's riot, run by validate_everything.bash, only needs a JRE on
PATH, so copy one from eclipse-temurin:21-jre instead and check it with
`java -version` during the build. Jena 5 requires Java 17 or later.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 25, 2026 15:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@retog
retog merged commit 68abde6 into main Sep 29, 2026
1 check passed
@retog
retog deleted the java-from-temurin branch September 29, 2026 13:07
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