Logan
d0b94d39c0
fix: agent install.sh 404 + 三阶段构建编译agent二进制
问题: 构建上下文 ./backend 无法访问 ../agent, 导致容器内
/app/agent/deploy/install.sh 不存在, 返回 404
修复:
- Dockerfile 改为三阶段构建 (backend go1.21 + agent go1.24 交叉编译 + alpine runtime)
- docker-compose backend build context 改为项目根
- routes.go /agent/arch 安装命令改为动态获取 URL
- 新增 .dockerignore
- agent_install.go: SSH 远程安装 handler
- AgentWizard.tsx: 复制按钮 fallback + 动态 server URL
- ServerTableRow.tsx: agent 状态判断
验证: curl|bash 安装成功, agent 上报数据到 MySQL ✅
2026-06-18 09:44:12 +08:00
..
2026-06-18 09:44:12 +08:00
2026-06-14 22:11:18 +08:00
2026-06-14 21:27:14 +08:00
2026-06-15 14:05:28 +08:00
2026-06-14 22:11:18 +08:00
2026-06-15 14:05:28 +08:00
2026-06-15 14:05:28 +08:00
2026-06-15 10:01:24 +08:00
2026-06-16 01:07:43 +08:00
2026-06-16 01:07:43 +08:00
2026-06-16 01:07:43 +08:00
2026-06-15 10:01:24 +08:00
2026-06-15 01:09:49 +08:00
2026-06-15 10:01:24 +08:00
2026-06-15 01:09:49 +08:00
2026-06-15 17:04:02 +08:00
2026-06-15 17:04:02 +08:00
2026-06-15 01:09:49 +08:00
2026-06-15 01:09:49 +08:00
2026-06-15 01:09:49 +08:00
2026-06-15 10:01:24 +08:00
2026-06-18 09:22:13 +08:00
2026-06-15 03:05:26 +08:00
2026-06-15 13:01:56 +08:00
2026-06-15 01:09:49 +08:00
2026-06-15 01:09:49 +08:00
2026-06-15 01:09:49 +08:00
2026-06-18 08:04:27 +08:00
2026-06-18 08:04:27 +08:00
2026-06-18 08:04:27 +08:00
2026-06-15 01:32:15 +08:00
2026-06-16 01:07:43 +08:00
2026-06-16 01:07:43 +08:00
2026-06-15 15:05:28 +08:00
2026-06-15 15:05:28 +08:00
2026-06-14 20:12:42 +08:00
2026-06-15 13:01:56 +08:00
2026-06-17 08:55:09 +08:00
2026-06-17 08:55:09 +08:00
2026-06-17 08:55:09 +08:00
2026-06-15 13:01:56 +08:00
2026-06-15 01:09:49 +08:00
2026-06-17 08:55:09 +08:00