feat(cli): add support for multi-architecture container images#1058
Merged
jakobmoellerdev merged 2 commits intoOct 20, 2025
Merged
Conversation
#### What this PR does / why we need it: - Introduced `Containerfile` to build scratch-based multi-arch container images for the CLI. - Added `build/multiarch/image` task to generate OCI-compatible multi-arch container images. - Adjusted `Taskfile.yml` to support multi-arch builds, leveraging Docker Buildx. - Improved task dependencies to ensure dependencies are downloaded before builds. - Modified resource identity names to reflect new multi-arch CLI structure. #### Why: This enables the CLI to be distributed as platform-compatible container images, improving accessibility across diverse environments. The capability aligns with modern multi-arch support best practices. Signed-off-by: Jakob Möller <jakob.moeller@sap.com>
e6f94d1 to
d510a1d
Compare
piotrjanik
reviewed
Oct 17, 2025
ikhandamirov
approved these changes
Oct 17, 2025
ikhandamirov
left a comment
Contributor
There was a problem hiding this comment.
Works for me.
To make it run locally, I had to set up the builder first. Is it handled by docker/setup-buildx-action@v3 ?
docker buildx create --name multiarch --driver docker-container --use
Contributor
yes, the action you mentioned creates a new buildx builder instance during the workflow |
morri-son
pushed a commit
to morri-son/open-component-model
that referenced
this pull request
Oct 23, 2025
…component-model#1058) #### What this PR does / why we need it: - Introduced `Containerfile` to build scratch-based multi-arch container images for the CLI. - Added `build/multiarch/image` task to generate OCI-compatible multi-arch container images. - Adjusted `Taskfile.yml` to support multi-arch builds, leveraging Docker Buildx. - Improved task dependencies to ensure dependencies are downloaded before builds. - Modified resource identity names to reflect new multi-arch CLI structure. #### Why: This enables the CLI to be distributed as platform-compatible container images, improving accessibility across diverse environments. The capability aligns with modern multi-arch support best practices. requirement as prep for open-component-model#1056 Signed-off-by: Jakob Möller <jakob.moeller@sap.com> Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Containerfileto build scratch-based multi-arch container images for the CLI.build/multiarch/imagetask to generate OCI-compatible multi-arch container images.Taskfile.ymlto support multi-arch builds, leveraging Docker Buildx.Why:
This enables the CLI to be distributed as platform-compatible container images, improving accessibility across diverse environments. The capability aligns with modern multi-arch support best practices.
requirement as prep for #1056