0024: An install folder, two data roots, prebuilt images
Status: Accepted (owner, 2026-11-24). Proposed (my call, 2026-11-16)
Context
Couchdogs ran from a repo checkout. Its state was spread over Docker volumes (pairing, runner settings) and COUCHDOGS_DATA, a former Wolf data folder; files such as the app hooks were mounted from the checkout (COUCHDOGS_DIR); every image was built on the host. That is hard to back up, hard to move, and nobody else could install it without cloning and building for an hour.
Decision
- Install folder. A folder anywhere with
compose.yml,.env,couchdogs,data/andlibrary/, made byinstall.shor by hand and configured by./couchdogs setup. Images are pulled from ghcr.io (${IMAGE_PREFIX-ghcr.io/citizenjc/}couchdogs-<x>:${IMAGE_TAG:-latest}), published by CI onv*tags. A clone still builds locally (compose.build.yml,IMAGE_PREFIX=,IMAGE_TAG=local). - Two roots.
DATA_DIRholds everything Couchdogs keeps (apps/<app id>,serverat 0700,runner) as plain folders, so one backup covers it.LIBRARY_DIRholds what is the household's (roms,bios,media,games);ROMS_DIR,BIOS_DIR,MEDIA_DIR,GAMES_DIRoverride one each, a symlink works too. - Nothing mounted from the repo. Hooks, entry scripts and recipes are baked into the images;
COUCHDOGS_DIRandCOUCHDOGS_DATAare gone. - Moving from Wolf copies and never merges:
WOLF_DIR(pairings, imported once by the server) and./couchdogs import-wolf(app profiles, dry run by default).
Calls made while building it:
- The recipe field
home:is dropped (my call): the app id is the folder name underDATA_DIR/apps, so there is one place to look. - Docker's client config and the store's base-image cache live in the volume
couchdogs-runner-cache, not inDATA_DIR(my call): they are rebuildable, a backup should not carry them. - Setup writes absolute paths (my call): the runner builds Docker binds from the strings.
- A symlinked per-system folder inside
romsis mounted by its target (my call), so a library that links its systems keeps working. - Library folders reach apps as Docker
Mountsbinds, neverBindsstrings (review finding): Docker creates a missingBindssource, root-owned, which would write into the household's library. A missing optional folder or ROM system is left out with a log line, a missing required one names its setting. WOLF_DIRis optional, with an empty fallback folder mounted when unset (my call), so a new install needs no special case.import-wolfleaves Steam's installed games where they are and names them forGAMES_DIR(review finding): they can be hundreds of GB and are the household's library, not app state.import-wolfmaps only Wolf's profileuser(my call): it is Wolf UI's default, the other profiles have no Couchdogs app and are listed as not copied.install.pykeeps the local base build context (my call): store builds on the host still start from a base image it builds itself.
Consequences
An install needs only Docker and the three files; updating is docker compose pull && docker compose up -d. The repository and packages must be public for the script and the pulls. Steam's image is never published (Valve's terms); store apps are still built on the host. The owner's host needs a one-off move (volumes into DATA_DIR, new .env) outside the repo.