Pulumi Deployments is running on AMD64 (i.e. x86),...
# pulumi-deployments
p
Pulumi Deployments is running on AMD64 (i.e. x86), and we're trying to get it to build ARM64 images. We use M1/M2 to build ARM64 natively when we run
pulumi
locally, but we want to be able to use Pulumi Deployments for CI and gitops
p
I'm aware, but that requires emulation support by the builder
Which is controlled by Pulumi Deployments
In our case we set the platform with the
--platform
flag, and Pulumi errored out
Saying that the builder didn't support ARM64
b
@polite-ocean-13631 we are discussing this internally
@polite-ocean-13631 please add
Copy code
docker run --privileged --rm tonistiigi/binfmt --install all
To your prerun commands, then you can set the platform on the docker build context and it should just work
p
Thanks @billowy-army-68599. I'll give that a try
@witty-candle-66007 you mentioned you'd create an issue to support ARM64 natively for Pulumi runners. Do you have the link to that issue? I'd like to leave a comment right by where I set the above pre-run command to explain why it's there, and why we'll hopefully remove it in the future
@billowy-army-68599 I guess I need to install
docker
into the custom image? I'm a bit surprised we were able to build images with
pulumi-docker
at all without it having been installed
n.b. we use a custom image so that we can use Python 3.11, instead of the default which is Python 3.9: https://github.com/pulumi/pulumi-docker-containers/issues/144
w
@polite-ocean-13631 Here’s the issue. https://github.com/pulumi/pulumi-cloud-requests/issues/305
p
Thanks!
I can't view it
I get a 404 page
I suppose
pulumi-service
is a private repository
w
Yeah - I put it in the wrong place - one sec
b
@polite-ocean-13631 try it with sudo
p
image.png
b
🤔
w
@polite-ocean-13631 Updated link above
p
Thanks!
After installing
docker
into our custom image it seems to be working, albeit slowly
b
ah you’re using a custom image?
p
We'd rather not, but adding support for Python 3.9 for all our infra code would be much more work than just maintaining this custom image and putting up with the longer deployment/preview times
b
sorry, missed that part
p
No worries
Sorry for presumably leaving you confused over why
docker
wasn't installed