-
Notifications
You must be signed in to change notification settings - Fork 23
fix(build): Make docker-buildx target compatible with podman #1414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideEnhanced the Makefile’s docker-buildx target to support Podman by introducing a conditional branch that uses standard podman build and push commands when CONTAINER_TOOL=podman, while retaining the existing Docker buildx workflow in other cases. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
PR Compliance Guide 🔍(Compliance updated until commit a4add9d)Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label Previous compliance checksCompliance check up to commit 77e9184
|
|||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
Makefile
Outdated
| .PHONY: docker-buildx | ||
| docker-buildx: ## Build and push docker image for the manager for cross-platform support | ||
| # copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile | ||
| sed -e '1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this part is not needed for podman
3bd7f13 to
b580f76
Compare
Signed-off-by: Kristian Da Costa Menezes <[email protected]>
b580f76 to
a4add9d
Compare
CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
The docker-buildx target was using Docker-specific 'buildx' commands,
which failed when CONTAINER_TOOL was set to 'podman'
Summary by Sourcery
Support Podman for cross-platform image builds by conditionally using standard Podman build and push commands in the docker-buildx Makefile target while retaining Docker buildx for other container tools.
Bug Fixes:
podman buildandpodman pushwhen CONTAINER_TOOL is set to podmanEnhancements: