Build EE with ansible-builder on Mac ARM CPU

AFAIK using Docker to build an image for AMD64 on ARM64-based hardware (such as Mac M1/2) requires setting a few different CLI options

  • docker buildx build instead of docker build
  • adding the switch --platform linux/amd64
  • adding the switch --push=true to publish the image to a repository

Is there any option to passing these arguments to ansible-builder (3.0.0) in order to build (and publish) the image, or would building and publishing need to be done with docker and only use ansible-builder to create the Dockerfile?

I don’t think ansible-builder allows passing arbitrary args to the container engine. Calling ansible-builder create to create the build context and then calling docker build context directly with your desired arguments is probably your best bet.