Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/lib/onboard/sandbox-prebuild.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ describe("sandbox BuildKit prebuild", () => {
it("uses the argv-based Docker helper and returns the local image on success", async () => {
const { buildCtx, createArgs, dockerfile } = createBuildContext();
const buildImage = vi.fn(async () => 0);
const resolvedBuildCtx = fs.realpathSync(buildCtx);
const resolvedDockerfile = fs.realpathSync(dockerfile);
const result = await prebuildSandboxImageIfEligible({
buildCtx,
buildId: BUILD_ID,
Expand All @@ -328,12 +330,11 @@ describe("sandbox BuildKit prebuild", () => {
expect(buildImage).toHaveBeenCalledWith(
[
"build",
"--progress=plain",
"-t",
"nemoclaw-sandbox-local:alpha-1234567890",
"-f",
dockerfile,
buildCtx,
resolvedDockerfile,
resolvedBuildCtx,
],
expect.objectContaining({
env: expect.objectContaining({ DOCKER_BUILDKIT: "1" }),
Expand Down
10 changes: 1 addition & 9 deletions src/lib/onboard/sandbox-prebuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,7 @@ export async function prebuildSandboxImageIfEligible(
let status: number | null;
try {
status = await buildImage(
[
"build",
"--progress=plain",
"-t",
imageRef,
"-f",
trustedContext.dockerfile,
trustedContext.buildCtx,
],
["build", "-t", imageRef, "-f", trustedContext.dockerfile, trustedContext.buildCtx],
{
env: { ...dockerBuildSubprocessEnv(), DOCKER_BUILDKIT: "1" },
stdio: "inherit",
Expand Down
Loading