feat: Go模块路径迁移 + Docker生产部署适配 + ethend Docker兼容
- 所有Go模块路径从 github.com/yourname/cyrene-ai 迁移到 git.yeij.top/AskaEth/Cyrene - 5个Go Dockerfile添加 GOPROXY=https://goproxy.cn,direct 解决国内构建问题 - ai-core go.mod 添加 pkg/plugins replace 指令 - Caddyfile 简化为 http:// 通配 + handle 保留 /api 前缀 - ethend Dockerfile 适配 (npm install + 仅 COPY package.json) - ethend 新增 RUNNING_IN_DOCKER 环境变量,健康检查改用Docker服务名 - ethend 数据库状态检查支持Docker hostname (postgres/redis/qdrant/minio) - process-manager 新增 CONTAINER_SVC_MAP + Docker模式自动检测 - 统一 docker-compose.dev.db.yml 卷名 (pg_data/redis_data/qdrant_data/minio_data) - docker-compose.yml ethend服务挂载docker.sock + 端口变量化 - 清理 .env 统一后的残留文件与提示信息 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -6,8 +6,8 @@ import (
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"github.com/yourname/cyrene-ai/pkg/plugins/manager"
|
||||
"github.com/yourname/cyrene-ai/pkg/plugins/sdk"
|
||||
"git.yeij.top/AskaEth/Cyrene/pkg/plugins/manager"
|
||||
"git.yeij.top/AskaEth/Cyrene/pkg/plugins/sdk"
|
||||
)
|
||||
|
||||
type hostAPI struct {
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/yourname/cyrene-ai/pkg/plugins/sdk"
|
||||
iotquery "github.com/yourname/cyrene-ai/pkg/plugins/iot_query"
|
||||
"git.yeij.top/AskaEth/Cyrene/pkg/plugins/sdk"
|
||||
iotquery "git.yeij.top/AskaEth/Cyrene/pkg/plugins/iot_query"
|
||||
)
|
||||
|
||||
type iotClient struct {
|
||||
|
||||
@@ -8,24 +8,24 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/yourname/cyrene-ai/pkg/plugins/calculator"
|
||||
"github.com/yourname/cyrene-ai/pkg/plugins/crypto"
|
||||
"github.com/yourname/cyrene-ai/pkg/plugins/datetime"
|
||||
fileplugin "github.com/yourname/cyrene-ai/pkg/plugins/file"
|
||||
httpplugin "github.com/yourname/cyrene-ai/pkg/plugins/http"
|
||||
iotcontrol "github.com/yourname/cyrene-ai/pkg/plugins/iot_control"
|
||||
iotquery "github.com/yourname/cyrene-ai/pkg/plugins/iot_query"
|
||||
jsonplugin "github.com/yourname/cyrene-ai/pkg/plugins/json"
|
||||
"github.com/yourname/cyrene-ai/pkg/plugins/manager"
|
||||
"github.com/yourname/cyrene-ai/pkg/plugins/markdown"
|
||||
"github.com/yourname/cyrene-ai/pkg/plugins/random"
|
||||
"github.com/yourname/cyrene-ai/pkg/plugins/sdk"
|
||||
"github.com/yourname/cyrene-ai/pkg/plugins/text"
|
||||
webfetch "github.com/yourname/cyrene-ai/pkg/plugins/web_fetch"
|
||||
websearch "github.com/yourname/cyrene-ai/pkg/plugins/web_search"
|
||||
"git.yeij.top/AskaEth/Cyrene/pkg/plugins/calculator"
|
||||
"git.yeij.top/AskaEth/Cyrene/pkg/plugins/crypto"
|
||||
"git.yeij.top/AskaEth/Cyrene/pkg/plugins/datetime"
|
||||
fileplugin "git.yeij.top/AskaEth/Cyrene/pkg/plugins/file"
|
||||
httpplugin "git.yeij.top/AskaEth/Cyrene/pkg/plugins/http"
|
||||
iotcontrol "git.yeij.top/AskaEth/Cyrene/pkg/plugins/iot_control"
|
||||
iotquery "git.yeij.top/AskaEth/Cyrene/pkg/plugins/iot_query"
|
||||
jsonplugin "git.yeij.top/AskaEth/Cyrene/pkg/plugins/json"
|
||||
"git.yeij.top/AskaEth/Cyrene/pkg/plugins/manager"
|
||||
"git.yeij.top/AskaEth/Cyrene/pkg/plugins/markdown"
|
||||
"git.yeij.top/AskaEth/Cyrene/pkg/plugins/random"
|
||||
"git.yeij.top/AskaEth/Cyrene/pkg/plugins/sdk"
|
||||
"git.yeij.top/AskaEth/Cyrene/pkg/plugins/text"
|
||||
webfetch "git.yeij.top/AskaEth/Cyrene/pkg/plugins/web_fetch"
|
||||
websearch "git.yeij.top/AskaEth/Cyrene/pkg/plugins/web_search"
|
||||
|
||||
"github.com/yourname/cyrene-ai/plugin-manager/internal/config"
|
||||
"github.com/yourname/cyrene-ai/plugin-manager/internal/handler"
|
||||
"git.yeij.top/AskaEth/Cyrene/plugin-manager/internal/config"
|
||||
"git.yeij.top/AskaEth/Cyrene/plugin-manager/internal/handler"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
Reference in New Issue
Block a user