Files
server/operations-log.md
2025-11-01 19:39:31 +08:00

18 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 操作留痕Codex
- 时间2025-11-01 19:35UTC+8
- 动作:修改 Dockerfile 创建应用用户命令
- 位置Dockerfile运行阶段“创建应用用户和目录”
- 变更:将原使用 addgroup/adduser 的写法替换为兼容 Debian/Ubuntu 与 Alpine 的健壮分支逻辑(优先使用 `groupadd/useradd`,回退到 `addgroup/adduser` 并按是否支持 `--gid` 区分参数)。
- 目的修复构建阶段报错“Option g is ambiguous (gecos, gid, group)”,避免不同基础镜像工具链参数差异导致失败。
- 工具apply_patch补丁写入
- 结果:补丁应用成功,建议以 `docker build --no-cache` 重新构建验证。
- 时间2025-11-01 19:40UTC+8
- 动作:修复部署脚本 archive-manager.sh 镜像检查逻辑
- 位置archive-manager.shdeploy_app 函数)
- 变更:新增 `image_exists` 检查,通过 `docker image inspect` 判断本地镜像是否存在;若不存在,`deploy` 流程自动调用 `build_image` 进行构建,避免 `docker compose up` 因尝试拉取远端镜像而失败(镜像找不到)。
- 目的:解决部署时报“镜像找不到”的问题,提升一键部署体验。
- 工具apply_patch补丁写入
- 结果:补丁应用成功,可通过 `./archive-manager.sh deploy <目录>` 直接部署,首次会自动构建镜像。