Add container, Compose and Kubernetes deployment with Litestream backup #26
No reviewers
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
svd:skip
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/people-mind-mcp!26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/svd-dev-peoplemind-mcp-9-containerfile-compose-and-kusto-145ae343"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Build a non-root image with pinned Python bases and the verified embedding model. Add Compose services, a namespace-agnostic Kubernetes base, example configuration and Secrets, Litestream backup configuration, deployment tests and Make targets. Replace the provisional README quick start.
Validation: make check passed with 252 passed, 5 skipped and 4 integration tests deselected. Six filtered deployment checks passed. Python wheel/sdist builds, YAML syntax checks and diff hygiene passed.
Closes #9
Co-Authored-By: gpt-6.1-sol noreply@openai.com
Architect verification (host, scratch worktree at
9751559, 2026-11-02)Verified on a scratch worktree with podman 5.8.7 (podman machine, applehv, rootless). The repo has no CI, so these are the host checks ruled at the #9 gate (Agent Adjustment 10).
uv run python3 -m pytest -m "not integration"uv run mypyuv run ruff check ./ruff format --check .uv lock --checkkustomize build deploy/k8s/overlays/examplemake image RUNTIME=podmanlocalhost/peoplemind-mcp:devc2cc45d8; runs as uid 1000; model files in the image match the pinned hashes (6c9c6101…dfb5e7,d241a60d…9e5c66), 34014426 and 711396 bytes, read-onlymake test-integration RUNTIME=podman/healthzand/healthz/syncgreen, Litestream file-replica restore passedpeoplemind checkwithpersons=4; podman events confirm sync, api, backup, the restore and check one-shots, and a cleandown -vOne fix pushed to this branch (
ce6dfe2):test_image_runs_non_root_without_credentialsranls -A /run/secrets/peoplemindin the bare image. Podman mounts a tmpfs over/run, so the directory the Containerfile creates is absent at runtime and the scan failed with exit 2. The test now lists only directories that exist; any that does must still be empty. Same intent, no change to the image. All 10 deployment tests pass with it.Host note:
podman composeneeds a compose provider on PATH (docker-composeorpodman-compose); this host had neither, so the run used the Nix store docker-compose 5.5.1. The compose fixture errored atup -duntil then. Not a PR defect.Review against the 13 gate rulings: all met. Python digests match the pasted amd64 and arm64 values; uid/gid 1000; compose runs as
PEOPLEMIND_UID/GIDwith no chown; upstreamlitestream/litestream:0.3.13withdepends_on: [sync]and S3 creds as env;deploy/litestream.example.ymlin the explicit form, file replica default, mounted at/etc/litestream.yml; prepare init container per role (api: read-token only; sync: everything else; backup:LITESTREAM_*env); nocompose.mailmind.yaml; README documents-p mailmind, port 8420 and the alias; test-only--once; no secret values anywhere. Accepted deviations:.dockerignorekeeps!src/**and!scripts/; restore validated through the backup container thenapi check.Nits, none blocking (follow-up candidates):
backupmounts the config and secrets directories it does not need (read-only); the k8s side is per role already.peoplemind-replicaPVC.mkdir -p /run/secrets/peoplemindis inert under podman (tmpfs/run); harmless.podman composeneeds a compose provider installed.Rootless uid mapping on Linux podman and the mailmind leg are #10 gate evidence, not covered here. Ready for the operator merge.