Skip to content

feat(deploy): Hugging Face Docker Space for the read-only demo#106

Merged
brownjuly2003-code merged 1 commit into
mainfrom
feat/hf-docker-space
Jun 29, 2026
Merged

feat(deploy): Hugging Face Docker Space for the read-only demo#106
brownjuly2003-code merged 1 commit into
mainfrom
feat/hf-docker-space

Conversation

@brownjuly2003-code

Copy link
Copy Markdown
Owner

Summary

Adds deploy/hf-space/ to publish the serving API as a Hugging Face Docker
Space
(the long-standing "live demo" item). Three files:

  • 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 POST /v1/query[/explain]), serves on app_port: 8000 as the
    HF-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 the liovina Space.

Verified on a Mac Docker daemon (x86_64, matching Spaces)

  • Image builds clean (30/30 steps).
  • Container serves the seeded order entity (ORD-20260404-1001).
  • NL query returns real revenue computed from seeded orders.
  • Demo guards enforced: admin 404, /v1/batch 403.
  • /v1/health returns 200 (Docker healthcheck passes); body honestly reports
    duckdb_pool live with Kafka/Flink/Iceberg as placeholder, since a single
    container does not run them.

Not done here (gated)

Creating/pushing the public Space under the liovina account is an outward
publish and is held as a gateDEPLOY.md has the ready-to-run steps.

🤖 Generated with Claude Code

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>
@github-actions

Copy link
Copy Markdown

DORA Metrics

  • Window: last 30 days
  • Branch: main
  • Deployment frequency: 168 total / 39.2 per week
  • Lead time for changes: avg 0.27h / median 0.0h
  • Change failure rate: 59.52% (100/168)
  • MTTR: 0.23h across 4 incident(s)

@brownjuly2003-code brownjuly2003-code merged commit 900b43c into main Jun 29, 2026
18 of 19 checks passed
@brownjuly2003-code brownjuly2003-code deleted the feat/hf-docker-space branch June 29, 2026 12:44
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.

2 participants