Skip to content

Runtime-v2.8.1

Choose a tag to compare

@zerone-agent zerone-agent released this 07 Sep 09:39
· 22 commits to main since this release
0c62ef7

🐳 镜像优化

  • #71 Docker 镜像 base 迁移:ubuntu:26.04 → node:22-bookworm-slim(Closes #4,R1 P2 修复闭环):
    • 体积 829MB → 565MB(-32%):删除 apt nodejs/libnode 层(官方镜像自带 Node 22 + npm 10),bun 装后清 ~/.npm 缓存
    • apt 国内源适配 Debian 12(deb822 debian.sources),sed + grep 断言 + apt-get update 构建门禁(切源失效即构建失败)
    • 构建期保持官方源(GHA runner 在美国),国内镜像仅运行时生效(PR #70 策略延续)
    • 实测:容器内 runtimes / sharp(glibc)/ /health 全部通过;mirrored apt-get update 成功

⚠️ 部署注意

  • 镜像 base 已变更:现有 agent 容器必须重建(recreate,非 restart)拉取 :2.8.1 镜像才生效
  • 容器内 Python 3.14 → 3.11(Debian 12 bookworm 系统版本):依赖 Python ≥3.12 特性的 agent 脚本需重新评估
  • npm 包本体零代码变化(@zerone-agent/agent-runtime@2.8.1 为同一代码,仅镜像产物更新)

📊 Verification

  • 构建+验证 run 全绿:apt-get update(mirrored)✅、容器内 URIs 正确 ✅、565MB ✅、smoke×3 ✅;CI lint/test ✅
  • publish.yml 双 job success;npm latest = 2.8.1 ✅

Full Changelog: runtime-v2.8.0...runtime-v2.8.1