I've been using an empty CommonBuildOpts in the BuildOptions. 

Looks like it is successfully running the FROM step in the containerfile and then fails on the second step. I've tried changing the second step to various actions with the same result. I've also verified that I am able to pull that image on the host.

Here is the output at the failure:
[linux/s390x] STEP 1/5: FROM quay.io/operator-framework/opm@sha256:038007c1c5d5f0efa50961cbcc097c6e63655a2ab4126547e3c4eb620ad0346e
[linux/amd64] STEP 1/5: FROM quay.io/operator-framework/opm@sha256:038007c1c5d5f0efa50961cbcc097c6e63655a2ab4126547e3c4eb620ad0346e
[linux/arm64] STEP 1/5: FROM quay.io/operator-framework/opm@sha256:038007c1c5d5f0efa50961cbcc097c6e63655a2ab4126547e3c4eb620ad0346e
[linux/ppc64le] STEP 1/5: FROM quay.io/operator-framework/opm@sha256:038007c1c5d5f0efa50961cbcc097c6e63655a2ab4126547e3c4eb620ad0346e
[linux/s390x] STEP 2/5: ENTRYPOINT ["/bin/opm"]
[linux/arm64] STEP 2/5: ENTRYPOINT ["/bin/opm"]
[linux/ppc64le] STEP 2/5: ENTRYPOINT ["/bin/opm"]
[linux/amd64] STEP 2/5: ENTRYPOINT ["/bin/opm"]
time="2021-10-01T18:16:56Z" level=error msg="4 errors occurred:\n\t* error building at STEP \"ENTRYPOINT /bin/opm\":

On Fri, Oct 1, 2021 at 1:45 PM Nalin Dahyabhai <nalin@redhat.com> wrote:
On Fri, Oct 01, 2021 at 01:20:09PM -0400, Alex Flom wrote:
> Thanks for that. I now see the logic used to build the multiarch images in
> imagebuildah and then the logic for building fat manifests right under that
> loop. Looks like a pretty big lift for my project, so I'll opt to use bud.
>
> When I import bud into my project, it crashes when it tries to execute the
> first command in the containerfile (entrypoint/add/cmd). Do you have any
> boilerplate for importing bud similar to 04-include-in-your-build-tool.md
> for commit?

I don't have boilerplate handy, but some details about the error you're
encountering might be helpful in diagnosing it.

One gotcha I'd suspect is that the CommonBuildOpts field is required in
the build options.

HTH,

Nalin



--

Alex Flom

Solution Architect

Red Hat

Virginia Beach, VA

aflom@redhat.com    
M: 970.443.0191