migrate to home made multi arch builder
This commit is contained in:
parent
8299122467
commit
9937f2e079
12
Makefile
12
Makefile
@ -1,23 +1,15 @@
|
|||||||
.PHONY: imageHaproxy
|
.PHONY: imageHaproxy
|
||||||
|
|
||||||
REGISTRY_IP=docker.registry
|
|
||||||
# linux/arm/v7
|
# linux/arm/v7
|
||||||
# linux/arm/v6
|
# linux/arm/v6
|
||||||
# linux/arm64
|
# linux/arm64
|
||||||
# linux/amd64
|
# linux/amd64
|
||||||
PLATFORM=linux/arm64
|
PLATFORM=linux/arm64,linux/amd64
|
||||||
#OCI_CLI=nerdctl
|
|
||||||
OCI_CLI=docker
|
|
||||||
#OCI_CLI_BUILD=$(OCI_CLI)
|
|
||||||
OCI_CLI_BUILD=$(OCI_CLI) buildx
|
|
||||||
|
|
||||||
## build
|
## build
|
||||||
|
|
||||||
shell_build_image = $(OCI_CLI_BUILD) build --platform $(PLATFORM) -t $(REGISTRY_IP):5000/$(1) .; \
|
|
||||||
$(OCI_CLI) push $(REGISTRY_IP):5000/$(1);
|
|
||||||
|
|
||||||
imageHaproxy:
|
imageHaproxy:
|
||||||
$(call shell_build_image,haproxy-k8s)
|
$(shell docker-multi-arch-builder build -n haproxy-k8s --platforms $(PLATFORM))
|
||||||
|
|
||||||
## management
|
## management
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user