forked from mariadb-operator/mariadb-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
86 lines (68 loc) · 2.88 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
GOBIN=$(shell go env GOPATH)/bin
else
GOBIN=$(shell go env GOBIN)
endif
ifndef ignore-not-found
ignore-not-found = false
endif
SHELL = /usr/bin/env bash -o pipefail
.SHELLFLAGS = -ec
VERSION ?= 0.0.27
# mariadb-operator
IMG_NAME ?= ghcr.io/mariadb-operator/mariadb-operator
IMG_VERSION ?= v$(VERSION)
IMG ?= $(IMG_NAME):$(IMG_VERSION)
IMG_ENT_NAME ?= mariadb/mariadb-operator-enterprise
IMG_ENT_VERSION ?= v$(VERSION)
IMG_ENT ?= $(IMG_ENT_NAME):$(IMG_ENT_VERSION)
# mariadb
RELATED_IMAGE_MARIADB_NAME ?= mariadb
RELATED_IMAGE_MARIADB_VERSION ?= 10.11.7
RELATED_IMAGE_MARIADB ?= $(RELATED_IMAGE_MARIADB_NAME):$(RELATED_IMAGE_MARIADB_VERSION)
RELATED_IMAGE_MARIADB_ENT_NAME ?= us-central1-docker.pkg.dev/mariadb-es-docker-registry/enterprise-docker/enterprise-server
# RELATED_IMAGE_MARIADB_ENT_NAME ?= docker.mariadb.com/enterprise-server
RELATED_IMAGE_MARIADB_ENT_VERSION ?= 10.6
RELATED_IMAGE_MARIADB_ENT ?= $(RELATED_IMAGE_MARIADB_ENT_NAME):$(RELATED_IMAGE_MARIADB_ENT_VERSION)
# maxscale
RELATED_IMAGE_MAXSCALE_NAME ?= mariadb/maxscale
RELATED_IMAGE_MAXSCALE_VERSION ?= 23.08
RELATED_IMAGE_MAXSCALE ?= $(RELATED_IMAGE_MAXSCALE_NAME):$(RELATED_IMAGE_MAXSCALE_VERSION)
# mysqld-exporter
RELATED_IMAGE_EXPORTER_NAME ?= prom/mysqld-exporter
RELATED_IMAGE_EXPORTER_VERSION ?= v0.15.1
RELATED_IMAGE_EXPORTER ?= $(RELATED_IMAGE_EXPORTER_NAME):$(RELATED_IMAGE_EXPORTER_VERSION)
# maxscale-exporter
RELATED_IMAGE_EXPORTER_MAXSCALE_NAME ?= mariadb/maxscale-prometheus-exporter-ubi
RELATED_IMAGE_EXPORTER_MAXSCALE_VERSION ?= latest
RELATED_IMAGE_EXPORTER_MAXSCALE ?= $(RELATED_IMAGE_EXPORTER_MAXSCALE_NAME):$(RELATED_IMAGE_EXPORTER_MAXSCALE_VERSION)
# galera
MARIADB_GALERA_INIT_IMAGE ?= $(IMG)
MARIADB_GALERA_ENT_INIT_IMAGE ?= $(IMG_ENT)
MARIADB_GALERA_AGENT_IMAGE ?= $(IMG)
MARIADB_GALERA_ENT_AGENT_IMAGE ?= $(IMG_ENT)
MARIADB_GALERA_LIB_PATH ?= /usr/lib/galera/libgalera_smm.so
MARIADB_GALERA_ENT_LIB_PATH ?= /usr/lib/galera/libgalera_enterprise_smm.so
# docker
MARIADB_DOCKER_COMMIT_HASH ?= d7a950d41e9347ac94ad2d2f28469bff74858db7
MARIADB_DOCKER_URL ?= https://raw.githubusercontent.com/MariaDB/mariadb-docker/$(MARIADB_DOCKER_COMMIT_HASH)/10.11/docker-entrypoint.sh
MARIADB_DOCKER_PATH ?= pkg/embed/mariadb-docker/docker-entrypoint.sh
DOCKER_CONFIG ?= $(HOME)/.docker/config.json
.PHONY: all
all: help
##@ General
.PHONY: help
help: ## Display this help.
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
.PHONY: version
version: ## Get current version.
@echo $(VERSION)
include make/build.mk
include make/deploy.mk
include make/deps.mk
include make/dev.mk
include make/gen.mk
include make/net.mk
include make/olm.mk
include make/pki.mk