Skip to content

Commit d943a84

Browse files
committed
Have both simple dev and multi-arch image
1 parent 1837862 commit d943a84

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,14 @@ bundle: manifests ## Generate bundle manifests and metadata, then validate gene
321321
operator-sdk bundle validate ./bundle
322322

323323
.PHONY: image
324-
image: ## Build the operator image
324+
image: ## Build an operator image for local development
325+
$(MAKE) bin/linux/amd64/manager TARGET_OS=linux TARGET_ARCH=amd64 VERSION=$(VERSION)
326+
$(MAKE) bin/linux/arm64/manager TARGET_OS=linux TARGET_ARCH=arm64 VERSION=$(VERSION)
327+
$(CONTAINER_ENGINE) build -f fast.Dockerfile --build-arg VERSION=$(VERSION) -t $(OPERATOR_IMAGE) .
328+
$(CONTAINER_ENGINE) push $(OPERATOR_IMAGE)
329+
330+
.PHONY: image-multiarch
331+
image-multiarch: ## Build releaseable multi-architecture operator image
325332
$(MAKE) bin/linux/amd64/manager TARGET_OS=linux TARGET_ARCH=amd64 VERSION=$(VERSION)
326333
$(MAKE) bin/linux/arm64/manager TARGET_OS=linux TARGET_ARCH=arm64 VERSION=$(VERSION)
327334
$(CONTAINER_ENGINE) buildx create --use --name multiarch-builder \

0 commit comments

Comments
 (0)