Skip to content

feat(deploy): single-command Docker installation contract - #168

Merged
LeoStehlik merged 3 commits into
masterfrom
feat/single-command-deploy
Nov 24, 2026
Merged

LeoStehlik merged 3 commits into
masterfrom
feat/single-command-deploy

Conversation

@LeoStehlik

@LeoStehlik LeoStehlik commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

What this adds

Install WrenLore with one command on a host where Docker Engine and the Docker Compose plugin are already running and accessible to the invoking user.

The installer deliberately does not install Docker, change user groups, manage privilege escalation or alter host package sources. Missing or inaccessible Docker is a hard prerequisite error with a clear recovery instruction.

The WrenLore deployment itself uses an image-based Docker Compose stack, generated secrets, loopback-only HTTP and health-gated completion. PostgreSQL/pgvector and Redis are pinned by digest; native installation, arm64 and automatic TLS management remain deferred.

Installation safety and updates

  • Each installation directory receives a stable Compose project name and a persistent ownership ID. Containers, volumes and networks carry the ID.
  • Before generating credentials or starting services, check existing project resources and conventional resource names. Refuse foreign resources, including leftover or unlabeled volumes, instead of taking over an existing deployment. Do not remove orphan services.
  • Plain reruns preserve the environment file byte for byte. Explicit version, port and public-URL options update their settings while preserving secrets, ownership and other operator configuration. Readiness output uses the effective settings.
  • Validate staged configuration and download images before replacing saved files. Failed validation, ownership inspection or downloads leave the previous configuration intact.
  • Missing configuration cannot trigger credential regeneration over existing volumes. Automatic adoption of source-build deployments or earlier draft installer configurations without an ownership ID is unsupported; retain their original commands and secrets.

The deployment contract and runbook explain these boundaries. No application or database-schema changes are included.

Verification

  • Shell syntax, ShellCheck and focused diff/privacy checks passed.
  • All 15 installer regression tests pass with the real Compose parser and a simulated daemon; no image pulls or live Docker changes occur in that suite.
  • The three key regressions fail against the original installer: ignored explicit updates, project/volume collisions across directories, and taking over an existing source-build project.
  • A disposable amd64 stack using the locally built v0.1.12 application image passed clean installation, health checks, actual ownership labels and loopback publication.
  • Environment/secrets were preserved exactly on plain rerun. PostgreSQL rows, Redis values and a storage marker survived rerun, explicit URL/port changes, container recreation, and compose down followed by installer rerun.
  • Foreign-directory collisions and missing configuration were rejected before creating new credentials. The disposable project, volumes and test files were removed afterward; the existing production container, start time and image remained unchanged and healthy.
  • A dedicated deployment workflow runs ShellCheck and the regression suite on relevant PRs and master updates.
  • On a real Docker-less Ubuntu host, the current installer stopped immediately with the prerequisite message, created no installation directory and made no host changes.

Merge gate

Keep this PR in draft until the official public WrenLore application image is available and anonymously pullable at the documented image name. Local-image verification does not establish that the default public installation command works. Image publication to GHCR/Docker Hub is not part of this PR.

@LeoStehlik
LeoStehlik force-pushed the feat/single-command-deploy branch from 6699e30 to 667a4d1 Compare November 24, 2026 19:56
@LeoStehlik
LeoStehlik marked this pull request as ready for review November 24, 2026 21:05
@LeoStehlik
LeoStehlik merged commit 1cd350c into master Nov 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant