feat(demo): one-command docker demo of vouch + the console#447
Open
plind-junior wants to merge 1 commit into
Open
feat(demo): one-command docker demo of vouch + the console#447plind-junior wants to merge 1 commit into
plind-junior wants to merge 1 commit into
Conversation
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.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
adds a self-contained
demo/that runsvouch serve+ the vouch-ui console inone image —
docker runordocker compose up, and the browser opens onto areview-gated starter kb seeded on first run. published at
ghcr.io/plind-junior/vouch-demoso people can try vouch without a clone.three pieces:
demo/— dockerfile, entrypoint, compose, env example, readme, and astdlib-only anthropic shim (
vouch-llm.py).proxyMiddlewaregains an optional pinned upstream +bearer token, read from
VOUCH_TARGET/VOUCH_HTTP_TOKENby the previewserver, 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'swebapp/node_modulesand build output outof 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_cmdto the shim only whenANTHROPIC_API_KEYisset, and everything else works without one. verified end-to-end in the built
image — seeded kb, healthy console, and a live
kb.compileround-trip (clean401 on a bad key, clean "not configured" with none).
base is
testto match #446 — the vendored console lives there, not yet on main.