Skip to content

feat(demo): one-command docker demo of vouch + the console#447

Open
plind-junior wants to merge 1 commit into
testfrom
feat/demo-docker
Open

feat(demo): one-command docker demo of vouch + the console#447
plind-junior wants to merge 1 commit into
testfrom
feat/demo-docker

Conversation

@plind-junior

Copy link
Copy Markdown
Member

adds a self-contained demo/ that runs vouch serve + the vouch-ui console in
one image — docker run or docker compose up, and the browser opens onto a
review-gated starter kb seeded on first run. published at
ghcr.io/plind-junior/vouch-demo so people can try vouch without a clone.

three pieces:

  • demo/ — dockerfile, entrypoint, compose, env example, readme, and a
    stdlib-only anthropic shim (vouch-llm.py).
  • proxy deploy mode — proxyMiddleware gains an optional pinned upstream +
    bearer token, read from VOUCH_TARGET / VOUCH_HTTP_TOKEN by the preview
    server, so the browser never picks the endpoint or sees the token. the dev
    behavior (per-request X-Vouch-Target, no injected token) is unchanged.
  • .dockerignore — keep the host's webapp/node_modules and build output out
    of the demo build context (npm ci reinstalls in-image for cross-arch).

the llm-backed actions (compile, summarize session) are bring-your-own-key: the
entrypoint wires compile.llm_cmd to the shim only when ANTHROPIC_API_KEY is
set, and everything else works without one. verified end-to-end in the built
image — seeded kb, healthy console, and a live kb.compile round-trip (clean
401 on a bad key, clean "not configured" with none).

base is test to match #446 — the vendored console lives there, not yet on main.

a self-contained image bundles `vouch serve` and the vouch-ui console under a
single `docker run` / `docker compose up`, seeding a review-gated starter kb on
first run so the console opens onto populated data rather than an empty store.

the console proxy gains a pinned-upstream + server-side bearer mode
(proxyMiddleware options, read from VOUCH_TARGET / VOUCH_HTTP_TOKEN by the
preview server) so the browser never chooses the endpoint or sees the token.

llm-backed actions (compile, summarize session) are bring-your-own-key: the
entrypoint wires compile.llm_cmd to a stdlib anthropic shim only when
ANTHROPIC_API_KEY is set, and everything else works without one.
@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5159a15a-9b78-45ca-ab29-8e80392a0262

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/demo-docker

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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