Giter Site home page Giter Site logo

Comments (10)

jayaddison avatar jayaddison commented on May 31, 2024 2

Hey folks 👋 Is there any chance that the buildah-build action might support the --platform multi-arch buildah option in future? (I can open a feature request if that's better than asking in here)

(as I understand it / for context: --platform is a way to provide --os, --arch and --variant within a single parameter, so it conflicts with those if they are set)

from buildah-build.

divyansh42 avatar divyansh42 commented on May 31, 2024 1

Hi @lexfrei this feature is now added in v2 version of the action.

from buildah-build.

anthr76 avatar anthr76 commented on May 31, 2024 1

Hi!

I'm trying to initiate a multi-arch build though it's failing.

My failed workflow can be found here

I have set.

    - name: Build Image
      id: build-image
      uses: redhat-actions/[email protected]
      with:
        image: tumbleweed-dnf-toolbox
        tags: ${{ env.SHORT_SHA }} ${{ env.SNAPSHOT }} latest
        archs: amd64,ARM64
        oci: true
        context: images/opensuse/tw/dnf
        dockerfiles:
          ./images/opensuse/tw/dnf/Dockerfile

I can build just fine on the CLI like buildah bud --arch amd64,ARM64 -t anthr76-devops-toolbox:20210305 .

from buildah-build.

divyansh42 avatar divyansh42 commented on May 31, 2024

@lexfrei 👋🏻
I think support to build mult-arch images will be a good addition.
We will update you once we start working on this feature :)

from buildah-build.

tetchel avatar tetchel commented on May 31, 2024

is this just the -arch argument?

this user also points out you need to have qemu-user-static installed
containers/buildah#1590 (comment)

from buildah-build.

anthr76 avatar anthr76 commented on May 31, 2024

Hey there @tetchel !

Thanks for taking a look! This is interesting as I originally had that.

I now receive the error on the image from OpenSUSE's registry (registry.opensuse.org/opensuse/tumbleweed-dnf), but not on the image I layered!

  1. https://github.com/anthr76/tooling/runs/2047204867?check_suite_focus=true (fail)
  2. https://github.com/anthr76/tooling/runs/2047199421?check_suite_focus=true (pass)

Which an interesting pattern, of which I'm assuming is a Buildah bug or an issue with the SUSE image. Though the SUSE image is indeed multi-arch. This can actually be re-produced on the CLI with both casings of arm.

buildah bud --arch amd64,ARM64 -t tumbweed-toolbox-dnf:20210306 .                                                   
STEP 1: FROM registry.opensuse.org/opensuse/tumbleweed-dnf
error creating build container: Error choosing an image from manifest list docker://registry.opensuse.org/opensuse/tumbleweed-dnf:latest: no image found in manifest list for architecture amd64,ARM64, variant "", OS linux
ERRO exit status 12

from buildah-build.

tetchel avatar tetchel commented on May 31, 2024

Sorry, I deleted my comment because I wanted to investigate further.

I wonder if the problem could be worked around by doing a buildah pull --arch with each arch you want, before doing the bud.

Another workaround worth trying is building the architectures separately (using a matrix strategy), ie one with --arch arm64 and another with --arch amd64.

from buildah-build.

anthr76 avatar anthr76 commented on May 31, 2024

I wonder if the problem could be worked around by doing a buildah pull --arch with each arch you want, before doing the bud

This worked (at least on the CLI)! Neat workaround. Wonder what exactly is causing this..

from buildah-build.

tetchel avatar tetchel commented on May 31, 2024

@jayaddison #65

from buildah-build.

jayaddison avatar jayaddison commented on May 31, 2024

Thanks, @tetchel!

from buildah-build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.