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.
This commit is contained in:
Michael Kinder committed 2026-11-21 13:45:14 -05:00
commit a0d992022d
21 files changed
+549

No files matched your search

+59
View File
@@ -0,0 +1,59 @@
# Cottage catalog
The recipes behind every app on [Cottage](https://cottage.host), 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.
```sh
# 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](LICENSE). The apps themselves keep their own licences (listed in each `cottage.yml`),
and their names and logos belong to their projects.