docs(verify): add real app screenshots with sprint fix - ANT 179, RUS 154, HAM 147

- Running /tmp/boxbox-server --db /tmp/boxbox-verify.db (localChampionshipHub)
- /verify.html shows championship hub table with fixed points
- /api/v1/championship/hub?year=2026&source=local returns 179/154/147
- Captured via google-chrome --headless --screenshot
- Add Dockerfile + docker-compose.yml for future prod-parity verification
This commit is contained in:
Aman Tahiliani
2026-07-10 23:50:05 -04:00
parent fc6fc36d8f
commit e51cabba62
9 changed files with 102 additions and 0 deletions

44
docker-compose.yml Normal file
View File

@@ -0,0 +1,44 @@
# box-box local prod-parity stack
# Usage:
# docker compose up --build -> http://localhost:8080
# Verification with Sprint fix:
# go run ./scripts/seed-verify-actual.go # seeds /tmp/boxbox-verify.db on host
# # or use compose volume mount:
# docker compose -f docker-compose.yml -f docker-compose.verify.yml up --build
#
# Next time: use this for screenshots so API + React UI are real.
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
BOXBOX_DISABLE_LIVE: "1"
# optional: point at OpenF1 mock for hermetic e2e
# BOXBOX_OPENF1_BASE_URL: http://mock:4010
volumes:
# Persist domain DB between runs
- boxbox-data:/root/.local/share/box-box
restart: unless-stopped
# Optional: seed-verify job that generates the Sprint-correct DB
# and drops it into the shared volume. Run with:
# docker compose --profile verify run --rm seed-verify
seed-verify:
build:
context: .
dockerfile: Dockerfile
profiles: ["verify"]
volumes:
- boxbox-data:/data
entrypoint: ["/bin/sh","-c"]
# This expects scripts/seed-verify-actual.go to be adapted to write to /data/boxbox.db
# For now placeholder: copy host-seeded DB if you mounted /tmp
command: |
"ls -lh /data && echo 'mount your /tmp/boxbox-verify.db into /data/boxbox.db manually for verification'"
volumes:
boxbox-data: