mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-02 06:56:36 +08:00
refactor(layout): adopt wavelet manifest layout for configs and docker while preserving docker-compose
This commit is contained in:
@@ -20,6 +20,7 @@ sidebar: false
|
||||
|
||||
### 💄 其他/体验
|
||||
|
||||
- 对齐 Wavelet 架构配置与构建布局(提交 807343c8):配置收敛至 `manifest/config/`(以 `config.default.yaml` 作为基础配置并支持 `config.yaml` 覆盖),Docker 镜像构建文件统一收敛至 `manifest/docker/` 并清理根目录冗余 `docker/` 目录,根目录 docker-compose 配置保持不变并切至新构建路径。
|
||||
- 内嵌前端拷贝目标改为 `backend/plugins/drivers/driver_http/dist`,与上游 `//go:embed all:dist` 对齐;发布工作流改为读取 `backend/go.mod`。仓库内 `.gitconfig` 提供 `merge.ours` 驱动,合并上游时保留 OpenFlare 自有路径;Wavelet 的 `build-image.yml` 与 `docker-compose.yml` 已隔离,避免 canary 发布成 wavelet 镜像。
|
||||
- 后端代码整体迁入 `backend/`,与上游 Wavelet 的仓库布局对齐(Cordis 插件化改造第一阶段),模块名保持 `Wavelet` 以保证上游包路径逐字一致。构建、测试、镜像与发布链路已同步调整,`make build-all` / `make dev` / `make swagger` 等本地命令用法不变;HTTP 接口与控制台行为均无变化。
|
||||
- 引入上游 Cordis 微内核与平台插件到 `backend/{core,pkg,plugins}`(与上游逐字一致,可用 `scripts/sync-upstream.sh` 重复同步),并新增 `backend/openflare/share/` 承载多插件共享资源(控制消息协议、GeoIP、边缘日志)。此阶段仅落位结构与共享层,尚未改变运行时行为。
|
||||
|
||||
@@ -83,7 +83,7 @@ OpenFlare 已收敛为**单 monorepo**(Go 模块 `OpenFlare`)。控制面 Se
|
||||
| `pkg/` | 跨组件共享库(协议、渲染、GeoIP 等) |
|
||||
| `scripts/` | Swagger 生成、安装脚本等 |
|
||||
| `docs/` | VitePress 文档站与设计基线 |
|
||||
| `docker/` | 各组件 Dockerfile |
|
||||
| `manifest/docker/` | 各组件 Dockerfile |
|
||||
| `uploads/`、`data/` | 运行时上传目录与静态数据(`.gitignore` 忽略) |
|
||||
|
||||
### 1. Server 分层(`main.go` + `internal/`)
|
||||
|
||||
@@ -83,7 +83,7 @@ When contributing code, strictly follow this physical layering and directory div
|
||||
| `pkg/` | cross-component shared libs (protocol, rendering, GeoIP, etc.) |
|
||||
| `scripts/` | Swagger generation, install scripts, etc. |
|
||||
| `docs/` | VitePress docs site and design baseline |
|
||||
| `docker/` | per-component Dockerfiles |
|
||||
| `manifest/docker/` | per-component Dockerfiles |
|
||||
| `uploads/`, `data/` | runtime upload dir and static data (`.gitignore`d) |
|
||||
|
||||
### 1. Server Layering (`main.go` + `internal/`)
|
||||
|
||||
Reference in New Issue
Block a user