Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Use arm64 instance for ContainerImageBuild when platform is arm64 #31

Closed

Description

@tmokmss

Currently we always amd64 instance regardless of platform property, but it is sometimes slow to build arm64 image in amd64 machine.

// use buildx for cross-platform image build.
// because soci-snapshotter currently only supports amd64 environment.
// const armImage = LinuxArmBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux2-aarch64-standard:3.0');
const x64Image = LinuxBuildImage.fromCodeBuildImageId('aws/codebuild/standard:7.0');
// const buildImage = props.platform == Platform.LINUX_ARM64 ? armImage : x64Image;
const buildImage = x64Image;

Now we create SingletonProject per platform and use arm64 instance when props.platform is arm64.

We may add soci property in the future, but we ignore it at least for now.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions