feat: bake Eclipse Temurin OpenJDK 11 into the image - #22
Merged
Conversation
The IBKR Client Portal Gateway (clientportal.gw) needs Java; its netty-4.1.15 reflectively accesses java.nio.DirectByteBuffer, which is fatal on Java 17+ (bookworm's only apt OpenJDK) but a harmless warning on 11. Pin Temurin 11.0.31+11 from Adoptium's GitHub releases, arch-selected via dpkg --print-architecture with a per-arch SHA-256 gate (matching the repo's pinned/integrity-gated build convention). update-alternatives symlinks java/javac into /usr/bin (already on PATH), so only JAVA_HOME gets an ENV — the load-bearing final PATH stays untouched. - Dockerfile: new section 5 (renumbered tail 5/6/7 -> 6/7/8) - Makefile: smoke asserts Temurin-11.0.31 + JAVA_HOME wiring - .devcontainer/CLAUDE.md: pinned-artifact inventory + do-NOT-bump-to-17 invariant Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ChrisSc
added a commit
that referenced
this pull request
Jun 15, 2026
Follow-up to #22, which baked Temurin OpenJDK 11 but left it invisible in the docs and the live inventory the in-container Claude is pointed at. - seed-claude.sh: list the JVM in the generated ENVIRONMENT.md (## Languages), capturing java's stderr-only --version output (the shared `ver` helper drops stderr, which would have rendered the line blank). - README.md: add "OpenJDK 11 (Temurin)" to the Languages highlight; fix the WSL clone example path that #21's rename missed (claude-sandbox -> claude-devcontainer). - CHANGELOG.md: populate the empty [Unreleased] with the JDK addition and the repo rename. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Bakes Eclipse Temurin OpenJDK 11.0.31+11 into the dev container image so it survives
make rebuild/docker compose down(live installs land outside the persistent volumes and get wiped).Why Java 11 specifically (do NOT bump to 17+)
The IBKR Client Portal Gateway (
clientportal.gw) needs Java. Its bundlednetty-4.1.15reflectively accessesjava.nio.DirectByteBuffer— a harmless warning on Java 11, but a fatalInaccessibleObjectExceptionon Java 17+ (Debian bookworm's only apt OpenJDK), which would otherwise force--add-opensflags inrun.sh.How
Dockerfile— new section 5 (renumbered tail 5/6/7 → 6/7/8). Pulls the JDK from Adoptium's GitHub releases, arch-selected viadpkg --print-architecture(the repo's house idiom) with a per-arch SHA-256 gate, matching the pinned/integrity-gated build convention.update-alternativessymlinksjava/javacinto/usr/bin(already on PATH), so onlyJAVA_HOMEgets anENV— the load-bearing finalPATHline is untouched.Makefile(smoke) — assertsjava -versionreportsTemurin-11.0.31and$JAVA_HOMEresolves correctly..devcontainer/CLAUDE.md— adds the JDK to the pinned-artifact inventory and a dedicated "do NOT bump to 17+" invariant.Validation
make lint— shellcheck + hadolint + yamllint +compose configall green./usr/lib/jvm/jdk-11.0.31+11,java -version→Temurin-11.0.31+11,javac 11.0.31.🤖 Generated with Claude Code