bazel-build: simpler idmap note and TODO
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0119iKoN3fSvRGUAYHupPW4U
This commit is contained in:
1 parent
18f4639bb7
commit
8fec1dd4bb
2 files changed
+7
-7
No files matched your search
@@ -49,10 +49,10 @@ services/
|
||||
- Downloads share one cache per host (`/var/lib/bazel-repo-cache` → `/repo-cache`,
|
||||
sha256-checked, 30-day cleanup). Fetched repo folders stay per container
|
||||
(`--repo_contents_cache`), since their contents are not checked.
|
||||
- Container root is an unprivileged host user, so writable binds (`/repo-cache`)
|
||||
use `idmap`; without it the folder shows as `nobody` and the container can't
|
||||
write. `idmap` only maps file owners on that mount, so what it writes there is
|
||||
owned by root on the host. TODO: share the cache without root-owned files.
|
||||
- Writable binds (`/repo-cache`) use `idmap`, or the container can't write
|
||||
to them. Container root isn't root on the host, but its files there are
|
||||
owned by host root. TODO: own the cache by a dedicated host user and map
|
||||
container root to it.
|
||||
- Global goose hints (`/root/.config/goose/.goosehints` → `/etc/goose/goosehints`):
|
||||
a local build means something is wrong (stop and report); build Go through Bazel.
|
||||
- Exposes `agentSystem` (slackerbot's agent + bazel, go, bazelrc, rbuild) and
|
||||
|
||||
Reference in new issue
Block a user