diff --git a/packages/backend/src/build-disk-image.spec.ts b/packages/backend/src/build-disk-image.spec.ts index 1755cc76..52b0e079 100644 --- a/packages/backend/src/build-disk-image.spec.ts +++ b/packages/backend/src/build-disk-image.spec.ts @@ -52,8 +52,9 @@ test('check image builder options', async () => { expect(options.HostConfig).toBeDefined(); if (options.HostConfig?.Binds) { expect(options.HostConfig.Binds[0]).toEqual(outputFolder + ':/output/'); + expect(options.HostConfig.Binds[1]).toEqual('/var/lib/containers/storage:/var/lib/containers/storage'); } - expect(options.Cmd).toEqual([image, '--type', type, '--target-arch', arch, '--output', '/output/']); + expect(options.Cmd).toEqual([image, '--type', type, '--target-arch', arch, '--output', '/output/', '--local']); }); test('check we pick unused container name', async () => { diff --git a/packages/backend/src/build-disk-image.ts b/packages/backend/src/build-disk-image.ts index e27e0b84..520c9bdc 100644 --- a/packages/backend/src/build-disk-image.ts +++ b/packages/backend/src/build-disk-image.ts @@ -335,7 +335,7 @@ export function createBuilderImageOptions( HostConfig: { Privileged: true, SecurityOpt: ['label=type:unconfined_t'], - Binds: [folder + ':/output/'], + Binds: [folder + ':/output/', '/var/lib/containers/storage:/var/lib/containers/storage'], }, // Add the appropriate labels for it to appear correctly in the Podman Desktop UI. @@ -344,7 +344,7 @@ export function createBuilderImageOptions( 'bootc.build.image.location': imagePath, 'bootc.build.type': type, }, - Cmd: [image, '--type', type, '--target-arch', arch, '--output', '/output/'], + Cmd: [image, '--type', type, '--target-arch', arch, '--output', '/output/', '--local'], }; return options; diff --git a/packages/backend/src/constants.ts b/packages/backend/src/constants.ts index c4b44c2d..2810089e 100644 --- a/packages/backend/src/constants.ts +++ b/packages/backend/src/constants.ts @@ -18,4 +18,4 @@ // Image related export const bootcImageBuilderContainerName = '-bootc-image-builder'; -export const bootcImageBuilderName = 'quay.io/centos-bootc/bootc-image-builder:latest-1708009307'; +export const bootcImageBuilderName = 'quay.io/centos-bootc/bootc-image-builder:latest-1710916056'; diff --git a/packages/frontend/src/Build.svelte b/packages/frontend/src/Build.svelte index e5bc5c41..5f1db09d 100644 --- a/packages/frontend/src/Build.svelte +++ b/packages/frontend/src/Build.svelte @@ -230,10 +230,6 @@ $: { >.

{/if} -

- Note: All images must be pushed to a publically accessible registry in order for our build system to - "pull" the images. This is TEMPORARY and local image building will be supported in the future. -