https://pulumi.com logo
Title
f

fresh-spring-82225

03/12/2023, 1:10 AM
Going in circles trying to understand building an arm64 docker image for aws lambda on github actions. It looks like there’s a feature in the works to support multi-arch builds, but is there a workaround in the mean time?
p

polite-umbrella-11196

03/12/2023, 3:22 AM
Where are you stalled out, @fresh-spring-82225?
const createImage = (repositoryUrl: pulumi.Output<any>) => {
  const recorderImage = new awsx.ecr.Image('recorder', {
    repositoryUrl,
    extraOptions: ['--platform', 'linux/amd64'],
    path: SERVICE_PATH,
  });
  return recorderImage.imageUri;
};
That’s the pulumi command I’m using right now to build an image; dunno if it helps at all.
f

fresh-spring-82225

03/13/2023, 4:25 PM
@polite-umbrella-11196 that looks like you’re building amd64, aka x86_64? I was trying to build an *arm*64 image but the image fails to build on github actions with the message
The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64) and no specific platform was requested
.
p

polite-umbrella-11196

03/13/2023, 5:09 PM
yes, I know
That’s how you specify arm64, though
extraOptions: ['--platform', 'linux/arm64'],