Skip to content

Commit

Permalink
use new Make directive for multiarch kueueviz
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin <[email protected]>
  • Loading branch information
KPostOffice committed Jan 8, 2025
1 parent 004680e commit ea2edcc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,16 @@ importer-image: PLATFORMS=linux/amd64
importer-image: PUSH=--load
importer-image: importer-image-build

# Install multiarch build dependencies and then create a builder instance to build the kueue-viz dashboard images
kueue-viz-image-multiarch:
docker run --privileged --rm tonistiigi/binfmt --install all
BUILDER=$(shell $(DOCKER_BUILDX_CMD) create --use)
$(MAKE) kueue-viz-image-build
$(DOCKER_BUILDX_CMD) rm $$BUILDER

# 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
BUILDER=$(shell $(DOCKER_BUILDX_CMD) create --use)
$(IMAGE_BUILD_CMD) \
-t $(IMAGE_REGISTRY)/kueue-viz-backend:$(GIT_TAG) \
-t $(IMAGE_REGISTRY)/kueue-viz-backend:$(RELEASE_BRANCH)-latest \
Expand All @@ -350,7 +355,6 @@ kueue-viz-image-build:
--platform=$(PLATFORMS) \
$(PUSH) \
-f ./cmd/experimental/kueue-viz/frontend/Dockerfile ./cmd/experimental/kueue-viz/frontend; \
$(DOCKER_BUILDX_CMD) rm $$BUILDER

.PHONY: kueue-viz-image-push
kueue-viz-image-push: PUSH=--push
Expand Down

0 comments on commit ea2edcc

Please sign in to comment.