From 9937f2e07992e7d36a76edb41cddda309f99e4c0 Mon Sep 17 00:00:00 2001 From: RouxAntoine Date: Sat, 8 Jan 2022 16:33:38 +0100 Subject: [PATCH] migrate to home made multi arch builder --- Makefile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 8f82184..71687a1 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,15 @@ .PHONY: imageHaproxy -REGISTRY_IP=docker.registry # linux/arm/v7 # linux/arm/v6 # linux/arm64 # linux/amd64 -PLATFORM=linux/arm64 -#OCI_CLI=nerdctl -OCI_CLI=docker -#OCI_CLI_BUILD=$(OCI_CLI) -OCI_CLI_BUILD=$(OCI_CLI) buildx +PLATFORM=linux/arm64,linux/amd64 ## build -shell_build_image = $(OCI_CLI_BUILD) build --platform $(PLATFORM) -t $(REGISTRY_IP):5000/$(1) .; \ - $(OCI_CLI) push $(REGISTRY_IP):5000/$(1); - imageHaproxy: - $(call shell_build_image,haproxy-k8s) + $(shell docker-multi-arch-builder build -n haproxy-k8s --platforms $(PLATFORM)) ## management