Files
WeKnora/docs/cloud-image/README.md
wizardchen afd7d1fdf8 docs(cloud-image): add cloud-agnostic image packaging scripts
Add scripts and docs for packaging WeKnora into cloud images (AMI,
custom images, snapshots) so users can distribute one-click deployable
templates on any cloud provider.

- scripts/cloud-image/: cloud-agnostic prepare/cleanup/firstboot scripts
  plus systemd units. Downloads only the 4 runtime files needed by the
  compose stack (~100KB) instead of cloning the full repo, and pins to
  any git ref via WEKNORA_REF for reproducible builds.
- firstboot.sh randomizes DB/Redis/JWT/AES secrets on first boot,
  writes credentials to /root/weknora-credentials.txt and self-removes.
- docs/cloud-image/: per-platform packaging guides. Includes a guide
  for Tencent Cloud Lighthouse / CVM covering image creation, sharing,
  and marketplace listing.

Default-on services match the unprofiled compose stack (frontend, app,
docreader, postgres, redis); optional services (qdrant, milvus,
neo4j, langfuse, etc.) remain opt-in via compose profiles to keep the
image size small.
2026-05-11 12:25:19 +08:00

1.0 KiB
Raw Blame History

WeKnora 云镜像打包指南

把 WeKnora 打包成可分发的云镜像AMI / 自定义镜像 / Snapshot用户基于镜像创建实例后开机即用、自动随机化密钥、零私密泄漏。

通用工具

云无关的脚本和详细说明:scripts/cloud-image/README.md

包含 prepare.sh / cleanup.sh / firstboot.sh 三个脚本和两个 systemd 单元已在多种发行版Ubuntu / Debian / CentOS / TencentOS上验证。

各平台具体操作

平台 文档 状态
腾讯云轻量应用服务器 / CVM tencent-lighthouse.md
AWS EC2 (AMI) 欢迎贡献
阿里云 ECS 欢迎贡献
火山引擎 ECS 欢迎贡献
华为云 ECS 欢迎贡献
本地 KVM / Proxmox 欢迎贡献

各平台文档结构尽量保持一致:实例规格建议 → 制作镜像操作 → 共享/公开方式 → 该平台独有的注意事项。