hello folks :wave: I'm looking for some guidance o...
# general
b
hello folks 👋 I'm looking for some guidance on how to build a multi arch docker image. Would anyone have some pointers to the right doc ?
s
try something like
linux/arm/v7,linux/arm64/v8,linux/amd64
for the
platform
argument: https://www.pulumi.com/registry/packages/docker/api-docs/image/#platform_nodejs
b
I tried, but this is rejected by the regex :
Copy code
Error response from daemon: "v8,linux" is an invalid component of "linux/arm64/v8,linux/amd64": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument
from https://github.com/pulumi/pulumi-docker/issues/296 I'm guessing that this isn't supported at the moment
s
No, that should be supported. What version of the provider are you using?
b
4.1.0
s
I'll ask the engineering team.
As a workaround, you can definitely create 2 single-platform images and combine them with
docker manifest
, which you could call using the Pulumi Command provider.
b
I'll try that. thanks a lot
s
It might just be that the validation is too strict.
I know it's not ideal, but this example should give you an idea of the syntax: https://github.com/pulumi/pulumi-docker/issues/296
b
I have the manifest creation working using `local.Command`as you suggested. That'll work for now 🙂 thanks.
s
Can you also file an issue here? The intent is definitely that multi-arch build should work. It's either a bug, or it's not sufficiently documented. In either case, Pulumi would like make this smooth: https://github.com/pulumi/pulumi-docker/issues
b
sure
s
Ugh. I see that was closed as dupe. That's my fault as I am aware of the referenced issue. I just wasn't sure it was the same issue.
In other news, I just realized that I sent you the wrong link for an example of how to use
docker manifest
. This is what I meant to link you to: https://github.com/pulumi/pulumi-docker-containers/blob/main/.github/workflows/release.yml#L198-L204