feat(deploy): Docker 化 KIP dashboard,实现开机自启 - #20
Merged
surenny merged 1 commit intoApr 30, 2026
Conversation
Add ui/Dockerfile (multi-stage Node.js build) and restore Dockerfile + docker-compose.yml so the dashboard runs as a managed container alongside the existing kip-server, with restart: unless-stopped. - ui/Dockerfile: three-stage build (client-builder → server-builder → runtime). Client built with Vite, server compiled with tsc, runtime image is node:22-slim + graphviz. Client dist lands at /app/client/dist so server/dist/index.js's ../../client/dist path resolves correctly. - docker-compose.yml: adds dashboard service (port 18080:8081), mounts project root as /project so the server can read agents/, blueprint/, .kip/state.db, and KIP/*.lean at runtime. - Dockerfile: restored leanblueprint serve container (was only on feat/unify-annotation-system, not on main). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.
完成了什么
将 KIP dashboard(
ui/)容器化,使其和现有的kip-server(leanblueprint serve)一样,通过 docker-compose 管理,服务器重启后自动拉起,不再依赖手动启动命令。新增文件
ui/Dockerfile— dashboard 的三阶段构建:client-builder:用 Vite 构建 React 前端,输出dist/server-builder:用tsc编译 Fastify 后端,输出dist/node:22-slim+ Graphviz(DAG 渲染必需),体积最小docker-compose.yml— 定义两个服务:kip-server:原有的 leanblueprint serve(端口 8082),restart: unless-stoppeddashboard:新增 dashboard 服务(端口 18080),挂载项目根目录为/project,restart: unless-stoppedDockerfile— 恢复 leanblueprint serve 的构建文件(原本只在feat/unify-annotation-system分支上,main 分支缺失)部署效果
kip.opensii.ai/dashboard/现已通过 docker-compose 稳定运行本地验证
docker compose up -d dashboard curl http://localhost:18080/api/state/health # → {"ok":true,"counts":{"nodes":239,"edges":321,...}}背景
关联 issue:#18(跨主机日志上报)、#19(分布式 agent 调度)