Skip to content

feat(release): v0.3.3 release prep — Dockerfile + docker-compose + README update - #81

Merged
argszero merged 1 commit into
mainfrom
feat/release-v033
Aug 18, 2026
Merged

argszero merged 1 commit into
mainfrom
feat/release-v033

Conversation

@argszero

Copy link
Copy Markdown
Owner

Summary

Release prep for v0.3.3 (P0-P2 all complete, 70/70 tests): Docker deployment + full README update + version tag.

Changes

  • Dockerfile (multi-stage): builder rust:1.86-slim → cargo build --release --locked; runtime debian:bookworm-slim with binary + ui/ + config.example.toml, non-root USER 10001, EXPOSE 8080, CMD aitokenpool --config /etc/aitokenpool/config.toml; ATP_MASTER_KEY env injectable (crypto reads env first); WORKDIR / so relative db_path = data/aitokenpool.db resolves to the mounted /data volume.
  • docker-compose.yml: service aitokenpool — build ., ports 8080:8080, volume ./data:/data (SQLite persistence), env ATP_MASTER_KEY=${ATP_MASTER_KEY:-dev-master-key-请替换}, healthcheck curl /healthz, restart policy; comments note production must set ATP_MASTER_KEY (openssl rand -hex 32).
  • README.md v0.3.0 → v0.3.3: status lists P0-A/B/C + P1 + P2-A/B/C (70 tests); quick start (① cargo ② docker compose up -d ③ browser); three seed accounts (demo/admin/ops); full API endpoint list (me/departments/raise-requests/ops/sharings PATCH); ui/ now real-API served by backend; env vars + feature matrix.

Verification

  • cargo test: 70 passed / 0 failed
  • cargo fmt --check: clean
  • cargo clippy --all-targets -- -D warnings: clean
  • cargo build --release --locked: OK
  • docker build: OK (image aitokenpool:0.3.3)
  • Live smoke (container, volume + ATP_MASTER_KEY): GET /healthz → {"status":"ok","version":"0.3.3"} 200; UI GET / 200; demo/admin login OK; /api/me + /api/wallet OK; DB persisted to mounted ./data (survives restart)

Related Issue

rant 2026-08-18T14:55:51 (发布准备 — Docker 部署 + README 更新 v0.3.3 + git tag)

Tests

  • cargo test 全部通过
  • cargo fmt --check 通过
  • 新增/更新了单元测试(如适用)—— docs/Docker only, no code change
  • 涉及配置/数据结构的改动已同步示例文件

Checklist

  • 分支命名符合约定(feat/ /fix/ /docs/ ...)
  • Commit message 使用 Conventional Commits 格式
  • 单一职责,改动最小化

…ADME full update

- Dockerfile: multi-stage (rust:1.86-slim builder → debian:bookworm-slim runtime),
  non-root USER 10001, WORKDIR / (relative db_path resolves to /data volume),
  ui/ at /ui for ServeDir, CMD with /etc/aitokenpool/config.toml,
  ATP_MASTER_KEY env injectable (crypto env-first)
- docker-compose.yml: build . + 8080:8080 + ./data:/data volume +
  ATP_MASTER_KEY env (openssl rand -hex 32) + curl /healthz healthcheck
- README: v0.3.0 → v0.3.3 — P0-A/B/C + P1 + P2-A/B/C status, 70 tests,
  quick start (cargo / docker / browser), three seed accounts
  (demo/admin/ops), full API endpoint list, env vars, feature matrix
@argszero
argszero merged commit 4c9088c into main Aug 18, 2026
1 check passed
@argszero
argszero deleted the feat/release-v033 branch August 18, 2026 07:55
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