From 0b5b02cc6faa661f7402eed11f050487528bfd4f Mon Sep 17 00:00:00 2001 From: Sergio Arroutbi Date: Mon, 6 Nov 2023 22:31:41 +0100 Subject: [PATCH] Allow using podman by setting new make rules (#213) Resolves: #184 Signed-off-by: Sergio Arroutbi --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Makefile b/Makefile index 94fadfb7..406970e7 100644 --- a/Makefile +++ b/Makefile @@ -126,6 +126,15 @@ docker-build: test ## Build docker image with the manager. docker-push: ## Push docker image with the manager. docker push ${IMG} +# Podman alternatives rules for constructing software +.PHONY: podman-build +podman-build: test ## Build podman image with the manager. + podman build -t ${IMG} . + +.PHONY: podman-push +podman-push: ## Push podman image with the manager. + podman push ${IMG} + # PLATFORMS defines the target platforms for the manager image be build to provide support to multiple # architectures. (i.e. make docker-buildx IMG=myregistry/mypoperator:0.0.1). To use this option you need to: # - able to use docker buildx . More info: https://docs.docker.com/build/buildx/ @@ -260,6 +269,14 @@ bundle-build: ## Build the bundle image. bundle-push: ## Push the bundle image. $(MAKE) docker-push IMG=$(BUNDLE_IMG) +.PHONY: podman-bundle-build +podman-bundle-build: ## Build the bundle image. + podman build -f bundle.Dockerfile -t $(BUNDLE_IMG) . + +.PHONY: podman-bundle-push +podman-bundle-push: ## Push the bundle image. + $(MAKE) podman-push IMG=$(BUNDLE_IMG) + .PHONY: opm OPM = ./bin/opm opm: ## Download opm locally if necessary.