2022-01-01 18:05:53 +00:00
|
|
|
.PHONY: imageKeepalived
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
## build
|
|
|
|
|
|
|
|
shell_build_image = $(OCI_CLI_BUILD) build --platform $(PLATFORM) -t $(REGISTRY_IP):5000/$(1) .; \
|
|
|
|
$(OCI_CLI) push $(REGISTRY_IP):5000/$(1);
|
|
|
|
|
|
|
|
imageKeepalived:
|
2022-01-02 11:52:37 +00:00
|
|
|
$(call shell_build_image,keepalived-k8s)
|
2022-01-01 18:05:53 +00:00
|
|
|
|
|
|
|
## management
|
|
|
|
|
|
|
|
status:
|
|
|
|
@curl -s $(REGISTRY_IP):5000/v2/_catalog | jq
|