Skip to content

feat(create-objectstack): scaffolded projects ship container-ready#2979

Merged
os-zhuang merged 1 commit into
mainfrom
claude/objectstack-official-docker-boic56-scaffold-docker
Jul 15, 2026
Merged

feat(create-objectstack): scaffolded projects ship container-ready#2979
os-zhuang merged 1 commit into
mainfrom
claude/objectstack-official-docker-boic56-scaffold-docker

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

背景

P2 脚手架增强(官方 Docker 镜像 #2952 的配套):新项目 npm create objectstack 之后应当开箱即可容器化上生产,而不是让用户去 examples/docker 手动复制文件。

变更内容

  • blank 模板新增三件套(由 examples/docker 改编,注释改为面向已脚手架项目、去掉「复制这些文件」的间接指引):
    • Dockerfile — 两阶段构建,runtime 阶段 FROM ghcr.io/objectstack-ai/objectstack:latest(注释提示按 CLI 版本锁 tag);
    • docker-compose.yml — app + Postgres 单机生产栈;
    • .dockerignore;
  • 模板 README 新增 Deploy 章节(build / compose / health 检查 + self-hosting 文档链接);
  • framework README Quick Start 增加一行生产部署入口;
  • changeset:create-objectstack: minor

验证

  • pnpm --filter create-objectstack build:tsup cpSync 把三件套(含 dotfile)完整拷入 dist/templates/blank/;
  • 真实跑了一次脚手架(node dist/index.js scaffold-test --template blank --skip-install):三个文件全部落盘,FROM ghcr.io/objectstack-ai/objectstack 完好;
  • .dockerignore 不在 npm pack 的强制排除名单内(.gitignore 才在),随包发布无问题。

🤖 Generated with Claude Code

https://claude.ai/code/session_0162o68e5w3bpUBEVRQboUGG


Generated by Claude Code

The blank template now includes the docker trio from examples/docker,
adapted for in-project use (no 'copy these files' indirection):

- Dockerfile — two-stage build onto the official runtime image
  ghcr.io/objectstack-ai/objectstack
- docker-compose.yml — app + Postgres single-host stack
- .dockerignore

Plus a Deploy section in the template README and a production
one-liner in the framework README Quick Start.

Verified: package build copies the trio (incl. the dotfile) into
dist/templates; a real scaffold run (--skip-install) lands all three
files with the official-image FROM line intact.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0162o68e5w3bpUBEVRQboUGG
@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Building Building Preview, Comment Jul 15, 2026 3:21pm

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation tooling size/m labels Jul 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): create-objectstack.

5 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:

  • content/docs/ai/skills-reference.mdx (via create-objectstack)
  • content/docs/ai/skills.mdx (via create-objectstack)
  • content/docs/getting-started/your-first-project.mdx (via create-objectstack)
  • content/docs/plugins/packages.mdx (via create-objectstack)
  • content/docs/releases/v9.mdx (via create-objectstack)

Advisory only. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs origin/main → pass the list as args.docs.

@os-zhuang
os-zhuang marked this pull request as ready for review July 15, 2026 15:49
@os-zhuang
os-zhuang merged commit a79e179 into main Jul 15, 2026
17 of 18 checks passed
@os-zhuang
os-zhuang deleted the claude/objectstack-official-docker-boic56-scaffold-docker branch July 15, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants