Repository navigation
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…prod) spawn_updater discovered the host compose-dir path by inspecting the greffer container's /app BIND mount. That mount only exists in dev (./:/app); in production the app is baked into the image (COPY . /app, no mount), so a remote update failed with "greffer has no mount at /app; cannot wire the updater" (500). A container can't discover a host path that isn't mounted into it. Take the host compose dir from GREFFER_HOST_CONFIG_DIR (the v2 design's intent) for the /work mount; fall back to /app-bind discovery when it's unset (dev). The /data mount is a named volume, still discoverable in prod, so it's unchanged. Empty + no /app -> clear error pointing at GREFFER_HOST_CONFIG_DIR. - settings: greffer_host_config_dir (binds GREFFER_HOST_CONFIG_DIR) - controller route passes it to spawn_updater - tests: prod path (no /app, host_config_dir used), override-wins, and the improved missing-dir error. Full app suite green (554). - docs/release-signing.md: GREFFER_HOST_CONFIG_DIR is the one required per-host setting on 0.3.4+. Operator action: set GREFFER_HOST_CONFIG_DIR=/root/.greffer (the dir holding docker-compose.yml) in env.env.
bc3e691 to
ba40c3c
Compare
Completes the host-config-dir fix: the remote-update controller needs the host compose-dir path to mount into the spawned updater, but the greffer can't discover it (the dir isn't bind-mounted into the container). The CLI renders the config into that dir, so it's the one component that knows the absolute host path. write_config now records GREFFER_HOST_CONFIG_DIR=<abs config dir> in env.env, so a fresh 'greffer up' wires remote update with no manual step. Existing installs (fast-path, env.env not rewritten) still need the line added once by hand or a re-init. Test asserts write_config emits it.
|
Added the missing production wiring: |
Bug (hit in the first real prod update)
A manager-triggered update reached the greffer but failed:
spawn_updaterdiscovered the host compose-dir path by inspecting the greffer container's/appbind mount. That mount only exists in dev (./:/app). In production the app is baked into the image (COPY . /app, no bind mount), so there's nothing to discover. A container fundamentally can't learn a host path that isn't mounted into it — so remote update was broken on every production greffer.Fix
Take the host compose dir from
GREFFER_HOST_CONFIG_DIR(the v2 design's intent) for the/workmount; fall back to/app-bind discovery when it's unset (dev, unchanged). The/datamount is a named volume — still discoverable in prod — so it's untouched. If neither is available, the error now points the operator atGREFFER_HOST_CONFIG_DIR.settings.greffer_host_config_dir(bindsGREFFER_HOST_CONFIG_DIR)/update/route passes it through/app, useshost_config_dir), env-overrides-/app, and the improved missing-dir error. Fullapps.greffersuite green (554).docs/release-signing.md:GREFFER_HOST_CONFIG_DIRdocumented as the one required per-host setting on 0.3.4+.Operator action after deploy
Set in each greffer's
env.env:GREFFER_HOST_CONFIG_DIR=/root/.greffer(the dir holdingdocker-compose.yml), then recreate. (This will also need to ship in the greffer-cli's rendered env/compose so new installs get it.)🤖 Generated with Claude Code