Skip to content

feat: 新增 agent-runtime 镜像(harbor-only)与双模式拉起脚本 - #531

Open
Huafubing wants to merge 1 commit into
AISBench:masterfrom
Huafubing:feat/agent-runtime-harbor-only
Open

feat: 新增 agent-runtime 镜像(harbor-only)与双模式拉起脚本#531
Huafubing wants to merge 1 commit into
AISBench:masterfrom
Huafubing:feat/agent-runtime-harbor-only

Conversation

@Huafubing

@Huafubing Huafubing commented Sep 10, 2026

Copy link
Copy Markdown

概述

为 AISBench 提供 agent-runtime 容器化运行方案:一个 harbor-only 精简运行时镜像 + 双模式拉起脚本。默认 socket 模式挂载宿主 docker.sock 复用宿主机 dockerd,trial 容器直接使用宿主机已有 case 镜像,零镜像导入;可选 --mode dind 提供强隔离运行环境。

变更内容(5 文件,+968 行)

文件 说明
docker/agent_runtime/Dockerfile.agent-runtime harbor-only 运行时镜像:harbor fork 经 gh-proxy.com 镜像从 git 仓库直接安装(支持 deps_path / --agent-deps 离线安装),并内置 compose patch
docker/agent_runtime/patches/harbor_compose_patch.py 修正 harbor 生成的 compose 配置(seccomp=unconfined + network_mode=host),兼容 openEuler/RHEL 宿主机
docker/agent_runtime/start_agent_runtime.sh 双模式拉起脚本:默认 socket 模式(复用宿主 dockerd,零镜像导入);--mode dind 强隔离(--privileged + 容器内独立 daemon + case 镜像包自动导入)
docker/agent_runtime/sync_images.sh dind 模式的增量镜像同步补充工具
docker/agent_runtime/USAGE.md 镜像构建、双模式启动、运行评测与故障排查文档

验证

  • socket 模式:默认模式拉起,挂载宿主 docker.sock,trial 容器直接复用宿主机已有 case 镜像(如 alexgshaw/fix-git),零镜像导入
  • 端到端评测:容器内通过 ais_bench + terminus-2 agent 对 terminal-bench 真实任务 fix-git 完成评测,全流程跑通
  • dind 模式--mode dind 拉起验证,容器内独立 dockerd + case 镜像包自动导入

镜像构建(--no-cache 全量构建成功)

docker build

容器内运行环境(agent_env harbor 激活后 harbor CLI 可用)

harbor CLI

复现步骤与测试命令见 docker/agent_runtime/USAGE.md

关联

取代并关闭 #499(历史提交混杂实验性方案,本 PR 基于 master 重新整理为单一 commit)。

@github-actions github-actions Bot added large_pr PR 新增代码超过 1000 行,建议拆分为更小的 PR no_review PR 未包含任何检视意见,合入前必须包含检视意见 labels Sep 10, 2026
@github-actions

Copy link
Copy Markdown

🚫 PR 合入质量检查未通过,PR 已被禁止合入。

未通过项:large_prno_review

  • 超大 PR:新增代码 1077 行,超过 1000 行上限,建议拆分。
  • 无检视意见:请至少邀请一位 reviewer 提交检视意见(Approve / Request changes / Comment 均可)。

请按上述提示整改后,重新推送(push)或评论本 PR 即可触发再次检查。

@Huafubing
Huafubing force-pushed the feat/agent-runtime-harbor-only branch from c741780 to 9e99a64 Compare September 10, 2026 09:22
@github-actions github-actions Bot removed the large_pr PR 新增代码超过 1000 行,建议拆分为更小的 PR label Sep 10, 2026
@github-actions

Copy link
Copy Markdown

🚫 PR 合入质量检查未通过,PR 已被禁止合入。

未通过项:no_review

  • 无检视意见:请至少邀请一位 reviewer 提交检视意见(Approve / Request changes / Comment 均可)。

请按上述提示整改后,重新推送(push)或评论本 PR 即可触发再次检查。

Comment thread docker/agent_runtime/Dockerfile.agent-runtime Outdated
@Huafubing
Huafubing force-pushed the feat/agent-runtime-harbor-only branch from 9e99a64 to 0d7908e Compare September 10, 2026 09:37
@github-actions github-actions Bot added review_opened PR 中存在未闭环的检视意见,所有检视意见必须闭环后才能合入 and removed no_review PR 未包含任何检视意见,合入前必须包含检视意见 labels Sep 10, 2026
@github-actions

Copy link
Copy Markdown

🚫 PR 合入质量检查未通过,PR 已被禁止合入。

未通过项:review_opened

  • 检视意见未闭环:还存在 1 条未 Resolve 的检视意见,请全部 Resolve 后再合入。

请按上述提示整改后,重新推送(push)或评论本 PR 即可触发再次检查。

Comment thread docker/agent_runtime/Dockerfile.agent-runtime Outdated
@Huafubing
Huafubing force-pushed the feat/agent-runtime-harbor-only branch from 0d7908e to d2f9657 Compare September 11, 2026 02:44
@github-actions

Copy link
Copy Markdown

🚫 PR 合入质量检查未通过,PR 已被禁止合入。

未通过项:review_opened

  • 检视意见未闭环:还存在 1 条未 Resolve 的检视意见,请全部 Resolve 后再合入。

请按上述提示整改后,重新推送(push)或评论本 PR 即可触发再次检查。

- Dockerfile.agent-runtime: 精简为 harbor-only 运行时,harbor fork
  经 gh-proxy.com 镜像从 git 仓库直接安装(deps_path / --agent-deps
  离线支持),内置 compose patch(seccomp=unconfined +
  network_mode=host,兼容 openEuler/RHEL)
- start_agent_runtime.sh: 双模式拉起。默认 socket 模式:挂载宿主
  docker.sock 复用宿主机 dockerd,trial 容器直接使用宿主机已有 case
  镜像,零镜像导入;--mode dind 提供强隔离(--privileged + 容器内
  独立 daemon + tb2 镜像包自动导入)
- sync_images.sh: dind 模式的增量镜像同步补充工具
- USAGE.md: 镜像构建、双模式启动、运行评测与故障排查文档
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review_opened PR 中存在未闭环的检视意见,所有检视意见必须闭环后才能合入

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants