https://pantsbuild.org/ logo
#general
Title
# general
l

loud-laptop-17949

11/12/2021, 7:38 PM
Is it possible to build docker images across architectures? We are using
docker buildx
to build both x86 and arm containers and wondering if we can get this working with pants.
h

happy-kitchen-89482

11/12/2021, 7:43 PM
@curved-television-6568 thoughts? maybe a feature to add?
w

witty-crayon-22786

11/12/2021, 7:52 PM
do you have any native dependencies without wheels built for them? if so, this relates to https://github.com/pantsbuild/pants/issues/13185
c

curved-television-6568

11/12/2021, 8:00 PM
That would be great to support. I have no personal experience with building images for multiple archs, so would need a little input to get going there..
I guess that it comes down to a) having docker setup properly, and b) creating the correct
docker
incantations to build. Currently, we rely entirely on an existing docker setup, so that leaves what would be required for step b. Does that seem to cover it? Can we do more?
l

loud-laptop-17949

11/12/2021, 9:58 PM
@witty-crayon-22786 we probably do and I we can work through that over time
w

witty-crayon-22786

11/12/2021, 10:51 PM
yea. i think having the docker support for cross-building of images themselves is step one… after that,
pants
support cross builds of the inputs
3 Views