Repository navigation
fix: Don't require a writable HOME directory - #52
Merged
Merged
Conversation
The dependency update moved the GraalVM and Truffle libraries to 25.0.5.1 and `mise.toml` followed, but the image still downloaded JDK 25.0.5. Mixing library and JDK release lines makes Truffle reject the pairing and fall back to its interpreter-only runtime. Download 25.0.5.1 instead, matching the version in `pom.xml`.
stefan-it
reviewed
Nov 23, 2026
jbaiter
force-pushed
the
fix-homelessness-is-great
branch
from
November 23, 2026 10:44
d5be5bd to
6a49526
Compare
The container image runs as an unprivileged user whose home directory is absent or root-owned (`/app`), so everything that wrote below `$HOME` failed or silently degraded: * GraalVM extracted its attach library into `$HOME/.cache`, could not, and fell back to the interpreter-only Truffle runtime. Extension hooks then ran without JIT; the only trace was a warning about a missing resource. * npm could not write its logs and aborted with a permissions error. * pip warned about its unwritable cache on every install. Point GraalVM's resource cache at `<data-directory>/.truffle` through `polyglot.engine.userResourceCache`, unless the operator set the property explicitly, and skip it when the data directory is not writable so the runtime still degrades gracefully. Pass `npm_config_cache` and `PIP_CACHE_DIR` to the installers instead of relying on `$HOME`.
jbaiter
force-pushed
the
fix-homelessness-is-great
branch
from
November 23, 2026 10:46
6a49526 to
073210d
Compare
stefan-it
approved these changes
Nov 23, 2026
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.
The container image runs as an unprivileged user whose home directory is absent
or root-owned (
/app), so everything that wrote below$HOMEfailed orsilently degraded:
$HOME/.cache, could not, and fellback to the interpreter-only Truffle runtime. Extension hooks then ran
without JIT; the only trace was a warning about a missing resource.
Point GraalVM's resource cache at
<data-directory>/.trufflethroughpolyglot.engine.userResourceCache, unless the operator set the propertyexplicitly, and skip it when the data directory is not writable so the runtime
still degrades gracefully. Pass
npm_config_cacheandPIP_CACHE_DIRto theinstallers instead of relying on
$HOME.