Comments (10)
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.
Hi @lexfrei this feature is now added in v2
version of the action.
from buildah-build.
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.
@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.
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.
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!
- https://github.com/anthr76/tooling/runs/2047204867?check_suite_focus=true (fail)
- 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.
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.
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.
from buildah-build.
Thanks, @tetchel!
from buildah-build.
Related Issues (20)
- [BUG] Check if multiarch manifest already exists, overwrite if so
- [FEATURE] support buildah manifest add
- [BUG]
- [FEATURE] Support `--jobs N` flag on buildah bud HOT 1
- [BUG] invalid mount type "cache" HOT 3
- [FEATURE] Provide image digest HOT 1
- [BUG] Buildah-build fails when previously ran as root HOT 1
- install_latest_buildah.sh no longer valid
- [FEATURE] Matrix Strategy Multi-Arch example HOT 4
- [FEATURE] buildah in container
- [BUG] Buildah not running as root on self hosted runners HOT 3
- [FEATURE] Annotation support HOT 2
- [BUG] In multi-stage builds, incorrect `latest` tag pushed HOT 3
- [BUG] Normalize Tag Name with Lowercasing HOT 1
- [FEATURE] Use podman as fallback for Containerfile/Dockerfile builds when buildah is unavailable HOT 1
- [FEATURE] Upgrade to NODE 20 HOT 2
- Push and login using podman action vs from buildah action?
- [QUESTION] Is `containerfiles` attribute supposed to be paths in relative to the path declared in `context` attribute? HOT 1
- [BUG] Wrong entrypoint set when omitting the entrypoint parameter
- [FEATURE] Make `--squash` argument optional
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buildah-build.