fix(extension): docker 镜像引用双后缀拼接——已含 tag 的自动镜像再补 suffix
build_command 无脑拼 {image}:{suffix};自动生成镜像名已含 tag
(bioflow-ext-<fp>:<suffix>)→ 拼成 a:b:b 非法引用,175 真实执行
exit 125 invalid reference format。修复:含冒号视为已带 tag,
不补后缀;用例 04 真实容器执行(自动镜像+解析脚本+过滤断言)通过。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -111,7 +111,10 @@ class ExtensionExecutor:
|
||||
cmd += ["-v", f"{self.cfg.entry_script_dir}:{self.cfg.container_entry_dir}:ro"]
|
||||
cmd += ["--cpus", self._safe_cpu(request.cpu or self.cfg.default_cpus)]
|
||||
cmd += ["--memory", self._safe_memory(request.memory or self.cfg.default_memory)]
|
||||
cmd.append(f"{request.image}:{self.cfg.docker_tag_suffix}")
|
||||
# 镜像名可能已含 tag(自动生成的 bioflow-ext-<fp>:<suffix>);
|
||||
# 未含 tag 时才补 suffix——否则拼成 a:b:b 的非法引用(真实 bug)。
|
||||
image_ref = str(request.image)
|
||||
cmd.append(image_ref if ":" in image_ref else f"{image_ref}:{self.cfg.docker_tag_suffix}")
|
||||
cmd += ["python", "-B", CONTAINER_ENTRY]
|
||||
cmd += ["--ext-dir", self.cfg.container_ext_dir]
|
||||
cmd += ["--input-dir", self.cfg.container_input_dir]
|
||||
|
||||
Reference in New Issue
Block a user