feat(deploy): Hugging Face Docker Space for the read-only demo#106
Merged
Conversation
Adds deploy/hf-space (Dockerfile + README + DEPLOY runbook) to publish the serving API as a Hugging Face Docker Space. The Dockerfile builds from the public GitHub repo (clone of main), runs in demo mode (mirrors deploy/fly: seeded DuckDB, admin routes 404, mutations blocked except /v1/query), and serves on app_port 8000 as the HF-required UID 1000 user with a writable home. Verified on a Mac Docker daemon (x86_64, matching Spaces): image builds (30/30), container serves the seeded order entity, runs an NL query (revenue from seeded orders), and enforces the demo guards (admin 404, batch 403). /v1/health returns 200 (Docker healthcheck passes); its body honestly reports duckdb_pool live with Kafka/Flink/Iceberg as placeholder, since a single container does not run them. The Space create/push under the liovina account is an outward publish — gated; DEPLOY.md documents the exact steps. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
DORA Metrics
|
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.
Summary
Adds
deploy/hf-space/to publish the serving API as a Hugging Face DockerSpace (the long-standing "live demo" item). Three files:
Dockerfile— builds from the public GitHub repo (clone ofmain), runs indemo mode (mirrors
deploy/fly: seeded DuckDB, admin routes404, mutationsblocked except
POST /v1/query[/explain]), serves onapp_port: 8000as theHF-required UID 1000 user with a writable home.
README.md— HF Space card frontmatter (sdk: docker,app_port: 8000) +demo behaviour and smoke commands.
DEPLOY.md— exact create/push runbook for theliovinaSpace.Verified on a Mac Docker daemon (x86_64, matching Spaces)
ORD-20260404-1001).404,/v1/batch403./v1/healthreturns200(Docker healthcheck passes); body honestly reportsduckdb_poollive with Kafka/Flink/Iceberg asplaceholder, since a singlecontainer does not run them.
Not done here (gated)
Creating/pushing the public Space under the
liovinaaccount is an outwardpublish and is held as a gate —
DEPLOY.mdhas the ready-to-run steps.🤖 Generated with Claude Code