refactor: 项目更名 WeKnora → Academy
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
- 全量替换代码/配置/文档中的项目名(保留上游 GitHub 链接、weixin 文档域名、Docker Hub 镜像名) - 重命名 32 个含项目名的文件/目录;Go module 路径改为 academy(含 client/cli 子模块) - docreader proto 描述符采用等长替换,保持序列化字节布局有效 - Dockerfile.app 构建网络修复: browserskill 离线产物通道、PyPI/apt 国内镜像 - 运行验证: go build ✓ docker compose up ✓ 健康检查 ✓
This commit is contained in:
1 parent
9097ee699d
commit
9058149576
3136 files changed
+18018
-18004
No files matched your search
+11
-11
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# 该脚本用于从源码构建WeKnora的所有Docker镜像
|
||||
# 该脚本用于从源码构建Academy的所有Docker镜像
|
||||
|
||||
# 设置颜色
|
||||
GREEN='\033[0;32m'
|
||||
@@ -21,7 +21,7 @@ SCRIPT_NAME=$(basename "$0")
|
||||
|
||||
# 显示帮助信息
|
||||
show_help() {
|
||||
echo -e "${GREEN}WeKnora 镜像构建脚本 v${VERSION}${NC}"
|
||||
echo -e "${GREEN}Academy 镜像构建脚本 v${VERSION}${NC}"
|
||||
echo -e "${GREEN}用法:${NC} $0 [选项]"
|
||||
echo "选项:"
|
||||
echo " -h, --help 显示帮助信息"
|
||||
@@ -37,7 +37,7 @@ show_help() {
|
||||
|
||||
# 显示版本信息
|
||||
show_version() {
|
||||
echo -e "${GREEN}WeKnora 镜像构建脚本 v${VERSION}${NC}"
|
||||
echo -e "${GREEN}Academy 镜像构建脚本 v${VERSION}${NC}"
|
||||
exit 0
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ get_version_info() {
|
||||
|
||||
# 构建应用镜像
|
||||
build_app_image() {
|
||||
log_info "构建应用镜像 (weknora-app)..."
|
||||
log_info "构建应用镜像 (academy-app)..."
|
||||
|
||||
cd "$PROJECT_ROOT"
|
||||
|
||||
@@ -162,7 +162,7 @@ build_app_image() {
|
||||
|
||||
# 构建文档读取器镜像
|
||||
build_docreader_image() {
|
||||
log_info "构建文档读取器镜像 (weknora-docreader)..."
|
||||
log_info "构建文档读取器镜像 (academy-docreader)..."
|
||||
|
||||
cd "$PROJECT_ROOT"
|
||||
|
||||
@@ -188,7 +188,7 @@ build_docreader_image() {
|
||||
|
||||
# 构建前端镜像(多阶段:npm 在 builder 内执行,无需宿主机预构建 dist)
|
||||
build_frontend_image() {
|
||||
log_info "构建前端镜像 (weknora-ui)..."
|
||||
log_info "构建前端镜像 (academy-ui)..."
|
||||
|
||||
cd "$PROJECT_ROOT"
|
||||
|
||||
@@ -215,7 +215,7 @@ build_frontend_image() {
|
||||
|
||||
# 构建沙箱镜像
|
||||
build_sandbox_image() {
|
||||
log_info "构建沙箱镜像 (weknora-sandbox)..."
|
||||
log_info "构建沙箱镜像 (academy-sandbox)..."
|
||||
|
||||
cd "$PROJECT_ROOT"
|
||||
|
||||
@@ -237,7 +237,7 @@ build_sandbox_image() {
|
||||
|
||||
# Cube 从镜像直接构建模板,并以 :49983/health 探活,缺 envd 必然失败,
|
||||
# 因此 Cube 用的是注入了 envd 的变体镜像。详见 website-docs/06-development/04-sandbox-deployment.md。
|
||||
log_info "构建沙箱镜像 Cube 变体 (weknora-sandbox:main-cube)..."
|
||||
log_info "构建沙箱镜像 Cube 变体 (academy-sandbox:main-cube)..."
|
||||
|
||||
docker build \
|
||||
--platform $PLATFORM \
|
||||
@@ -255,7 +255,7 @@ build_sandbox_image() {
|
||||
|
||||
# Desktop variant: XFCE + x11vnc + websockify. Tagged for E2B template
|
||||
# builds; the Docker backend does not consume this image yet.
|
||||
log_info "构建沙箱镜像桌面变体 (weknora-sandbox:main-desktop)..."
|
||||
log_info "构建沙箱镜像桌面变体 (academy-sandbox:main-desktop)..."
|
||||
|
||||
docker build \
|
||||
--platform $PLATFORM \
|
||||
@@ -271,7 +271,7 @@ build_sandbox_image() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
log_info "构建沙箱镜像桌面 Cube 变体 (weknora-sandbox:main-desktop-cube)..."
|
||||
log_info "构建沙箱镜像桌面 Cube 变体 (academy-sandbox:main-desktop-cube)..."
|
||||
|
||||
docker build \
|
||||
--platform $PLATFORM \
|
||||
@@ -354,7 +354,7 @@ build_all_images() {
|
||||
|
||||
# 清理本地镜像
|
||||
clean_images() {
|
||||
log_info "清理本地WeKnora镜像..."
|
||||
log_info "清理本地Academy镜像..."
|
||||
|
||||
# 停止相关容器
|
||||
log_info "停止相关容器..."
|
||||
|
||||
Reference in new issue
Block a user