fix(docker): time out setup image pulls · openclaw/openclaw@dcf0941
vincentkoc
·
2026-05-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -106,6 +106,16 @@ describe("test-install-sh-docker", () => {
|
106 | 106 | expect(script).toContain('--build-arg "OPENCLAW_INSTALL_BROWSER=${OPENCLAW_INSTALL_BROWSER}"'); |
107 | 107 | }); |
108 | 108 | |
| 109 | +it("bounds Docker setup image pulls", () => { |
| 110 | +const script = readFileSync(DOCKER_SETUP_PATH, "utf8"); |
| 111 | + |
| 112 | +expect(script).toContain('DOCKER_PULL_TIMEOUT="${OPENCLAW_DOCKER_SETUP_PULL_TIMEOUT:-600s}"'); |
| 113 | +expect(script).toContain("run_docker_pull()"); |
| 114 | +expect(script).toContain('timeout "$DOCKER_PULL_TIMEOUT" docker pull "$image"'); |
| 115 | +expect(script).toContain('run_docker_pull "$IMAGE_NAME"'); |
| 116 | +expect(script).not.toContain('docker pull "$IMAGE_NAME"'); |
| 117 | +}); |
| 118 | + |
109 | 119 | it("passes image-scoped pip packages through Docker and Podman setup", () => { |
110 | 120 | const dockerSetup = readFileSync(DOCKER_SETUP_PATH, "utf8"); |
111 | 121 | const podmanSetup = readFileSync(PODMAN_SETUP_PATH, "utf8"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。