fix: 为 runner 镜像补齐 git bundle 工具
This commit is contained in:
@@ -9,7 +9,7 @@ ENV PORT=8080
|
|||||||
ENV AGENTRUN_CODEX_COMMAND=/app/node_modules/.bin/codex
|
ENV AGENTRUN_CODEX_COMMAND=/app/node_modules/.bin/codex
|
||||||
|
|
||||||
RUN HTTP_PROXY="$HTTP_PROXY" HTTPS_PROXY="$HTTPS_PROXY" NO_PROXY="$NO_PROXY" http_proxy="$HTTP_PROXY" https_proxy="$HTTPS_PROXY" no_proxy="$NO_PROXY" \
|
RUN HTTP_PROXY="$HTTP_PROXY" HTTPS_PROXY="$HTTPS_PROXY" NO_PROXY="$NO_PROXY" http_proxy="$HTTP_PROXY" https_proxy="$HTTPS_PROXY" no_proxy="$NO_PROXY" \
|
||||||
apk add --no-cache ca-certificates kubectl nodejs
|
apk add --no-cache ca-certificates git kubectl nodejs openssh-client
|
||||||
|
|
||||||
COPY package.json tsconfig.json ./
|
COPY package.json tsconfig.json ./
|
||||||
RUN HTTP_PROXY="$HTTP_PROXY" HTTPS_PROXY="$HTTPS_PROXY" NO_PROXY="$NO_PROXY" http_proxy="$HTTP_PROXY" https_proxy="$HTTPS_PROXY" no_proxy="$NO_PROXY" \
|
RUN HTTP_PROXY="$HTTP_PROXY" HTTPS_PROXY="$HTTPS_PROXY" NO_PROXY="$NO_PROXY" http_proxy="$HTTP_PROXY" https_proxy="$HTTPS_PROXY" no_proxy="$NO_PROXY" \
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ import { assertNoSecretLeak, type SelfTestCase, type SelfTestContext } from "../
|
|||||||
const execFile = promisify(execFileCallback);
|
const execFile = promisify(execFileCallback);
|
||||||
|
|
||||||
const selfTest: SelfTestCase = async (context) => {
|
const selfTest: SelfTestCase = async (context) => {
|
||||||
|
const containerfile = await readFile(path.join(context.root, "deploy/container/Containerfile"), "utf8");
|
||||||
|
assert.ok(containerfile.includes(" git ") && containerfile.includes(" openssh-client"), "runtime image must include git and openssh-client for ResourceBundleRef checkout");
|
||||||
const fakeKubectl = path.join(context.tmp, "fake-kubectl-hwlab.js");
|
const fakeKubectl = path.join(context.tmp, "fake-kubectl-hwlab.js");
|
||||||
const createdManifest = path.join(context.tmp, "created-hwlab-runner-job.json");
|
const createdManifest = path.join(context.tmp, "created-hwlab-runner-job.json");
|
||||||
await writeFile(fakeKubectl, `#!/usr/bin/env bun
|
await writeFile(fakeKubectl, `#!/usr/bin/env bun
|
||||||
|
|||||||
Reference in New Issue
Block a user