Skip to content

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/ and library/, made by install.sh or 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 on v* tags. A clone still builds locally (compose.build.yml, IMAGE_PREFIX=, IMAGE_TAG=local).
  • Two roots. DATA_DIR holds everything Couchdogs keeps (apps/<app id>, server at 0700, runner) as plain folders, so one backup covers it. LIBRARY_DIR holds what is the household's (roms, bios, media, games); ROMS_DIR, BIOS_DIR, MEDIA_DIR, GAMES_DIR override one each, a symlink works too.
  • Nothing mounted from the repo. Hooks, entry scripts and recipes are baked into the images; COUCHDOGS_DIR and COUCHDOGS_DATA are 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 under DATA_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 in DATA_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 roms is mounted by its target (my call), so a library that links its systems keeps working.
  • Library folders reach apps as Docker Mounts binds, never Binds strings (review finding): Docker creates a missing Binds source, 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_DIR is optional, with an empty fallback folder mounted when unset (my call), so a new install needs no special case.
  • import-wolf leaves Steam's installed games where they are and names them for GAMES_DIR (review finding): they can be hundreds of GB and are the household's library, not app state.
  • import-wolf maps only Wolf's profile user (my call): it is Wolf UI's default, the other profiles have no Couchdogs app and are listed as not copied.
  • install.py keeps 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.