Skip to content

Commit

Permalink
create builder to use for multiarch
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin <kpostlet@redhat.com>
  • Loading branch information
KPostOffice committed Jan 3, 2025
1 parent 62e94f7 commit 1e5343d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,20 @@ importer-image: PLATFORMS=linux/amd64
importer-image: PUSH=--load
importer-image: importer-image-build

# 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

# 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) \
--build-arg BASE_IMAGE=$(BASE_IMAGE) \
--build-arg BUILDER_IMAGE=$(BUILDER_IMAGE) \
--build-arg CGO_ENABLED=$(CGO_ENABLED) \
Expand All @@ -347,7 +353,7 @@ kueue-viz-image-build:
$(IMAGE_BUILD_CMD) \
-t $(IMAGE_REGISTRY)/kueue-viz-frontend:$(GIT_TAG) \
-t $(IMAGE_REGISTRY)/kueue-viz-frontend:$(RELEASE_BRANCH)-latest \
--platform=$(VIZ_PLATFORMS) \
--platform=$(PLATFORMS) \
$(PUSH) \
-f ./cmd/experimental/kueue-viz/frontend/Dockerfile ./cmd/experimental/kueue-viz/frontend; \

Expand Down

0 comments on commit 1e5343d

Please sign in to comment.