-
Notifications
You must be signed in to change notification settings - Fork 277
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
create builder to use for multiarch #3924
base: main
Are you sure you want to change the base?
Conversation
Hi @KPostOffice. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
/ok-to-test |
|
||
# Build the kueue-viz dashboard images (frontend and backend) | ||
.PHONY: kueue-viz-image-build | ||
kueue-viz-image-build: | ||
$(IMAGE_BUILD_CMD) \ | ||
-t $(IMAGE_REGISTRY)/kueue-viz-backend:$(GIT_TAG) \ | ||
-t $(IMAGE_REGISTRY)/kueue-viz-backend:$(RELEASE_BRANCH)-latest \ | ||
--platform=$(VIZ_PLATFORMS) \ | ||
--platform=$(PLATFORMS) \ |
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.
Why were these changes made?
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.
The VIZ_PLATFORMS was added since it wasn't working with multiarch builds. I figured it would be safe to remove and prefer the more generic PLATFORMS
environment variable
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.
Ah, I see, they are the same. In that case, could you please remove VIZ_PLATFORMS everywhere?
Makefile
Outdated
# Build multiarch kueue-viz image locally | ||
.PHONY: local-kueue-viz-image-build | ||
local-kueue-viz-image-build: | ||
BUILDER=$(shell $(DOCKER_BUILDX_CMD) create --use) | ||
$(MAKE) kueue-viz-image-build PUSH=$(PUSH) | ||
$(DOCKER_BUILDX_CMD) rm $$BUILDER |
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.
Can we apply this changes on kueue-viz-image
target?
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.
Yeah, I was just following the semantics done here, but adding it directly to the kueue-viz-image
target means that we wouldn't have to update any CI I would guess
1e5343d
to
780675f
Compare
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.
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 added it to fix an issue: #3883. However, since you're now using docker buildx create --use
, that should resolve it if I understand correctly.
94eb20d
to
ea7a3a9
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: KPostOffice The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
8f21173
to
96cd511
Compare
Signed-off-by: Kevin <kpostlet@redhat.com>
96cd511
to
004680e
Compare
# Build the kueue-viz dashboard images (frontend and backend) | ||
.PHONY: kueue-viz-image-build | ||
kueue-viz-image-build: | ||
docker run --privileged --rm tonistiigi/binfmt --install all |
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.
This is not obvious to me. Can you add a comment that this is required for emulated builds for docker?
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.
Yes for sure, I'm not even sure this is the best place for this. I put it in quickly because I was having trouble reproducing on my local env.
/hold
What type of PR is this?
/kind feature
What this PR does / why we need it:
Creates a builder image to use for Kueue-viz multiarch build and then cleans it up after it is done
Which issue(s) this PR fixes:
Fixes #3916
Special notes for your reviewer:
This requires changes to the Prow CI as well, I'm not certain where these changes need to be made, could someone point me in the correct direction here?
Does this PR introduce a user-facing change?