Files
catalog/README.md
T
Michael Kinder a0d992022d Cottage catalog: three starter recipes
Vaultwarden, Actual Budget and Uptime Kuma, each a Harbor template with a listing, an icon,
first-run notes and a smoke test. CI builds Harbor at the pinned commit and runs every
recipe's smoke test against its fake runtime.
2026-11-21 13:45:14 -05:00

2.9 KiB
Raw Blame History

Cottage catalog

The recipes behind every app on Cottage, managed hosting for open-source apps. Each recipe is a Harbor template (Docker Compose plus a few Cottage settings) and a listing. Cottage's control plane syncs this repo and pushes the templates to the servers that run your apps.

Maintainers are welcome here: if you make one of these apps, you can check how we run it, suggest changes, or co-maintain its recipe. See Cottage's maintainer program for how revenue is shared.

apps/<slug>/
  template.yml   Harbor template: Compose + x-harbor (resources, parameters, health path)
  cottage.yml    listing: name, tagline, category, upstream, license, image digests
  README.md      first-run notes shown on the app's Overview tab
  icon.svg       64×64 icon, no scripts or event handlers
  tests/smoke.sh deploy → running → HTTP 200 on health_path → delete
schema/cottage.schema.json

Rules

  • Slug = directory name = x-harbor.slug, lowercase with hyphens, matching the upstream project.
  • Version = <upstream version>-c<packaging revision>, e.g. 1.34.3-c1. Bump -c when only the recipe changes. A published version is never edited: Harbor and Hearth both refuse a changed document under an existing version.
  • Images come from the official upstream, pinned by tag in template.yml, with the multi-arch digest recorded in cottage.yml.
  • Containers run as a non-root user; x-harbor.volumes hands the volume to that uid/gid.
  • First-run admin credentials are generated secret parameters, never defaults. If the app can only create its admin on first visit, set first_visit_claims_admin: true so the dashboard tells the owner to finish setup straight away.
  • Mail ports (25/465/587) are blocked by Harbor's egress firewall. Don't rely on SMTP.
  • Copy follows the Cottage voice: plain, warm, specific, sentence case, no exclamation marks.

Testing a recipe

Each recipe has a smoke test (apps/<slug>/tests/smoke.sh): deploy, wait for it to run, check the health path, delete. CI runs every test against Harbor's fake runtime on each push and pull request.

Harbor isn't public yet, so CI needs a key to build it. Pull requests from forks can't use that key: their recipe tests are skipped, and we run them before merging.

# With a Harbor node to test against (URL and API token):
HARBOR_URL=http://127.0.0.1:7700 HARBOR_TOKEN=... apps/vaultwarden/tests/smoke.sh

# Against a real Docker node, also check the health path over HTTPS:
HEALTH_BASE='https://%s' HARBOR_URL=... HARBOR_TOKEN=... apps/vaultwarden/tests/smoke.sh

Contributing

Open an issue or a pull request. Keep a recipe's published version unchanged: bump the -c revision instead. Please don't include secrets, real credentials or personal data.

Licence

Apache-2.0. The apps themselves keep their own licences (listed in each cottage.yml), and their names and logos belong to their projects.