forked from mariadb-operator/mariadb-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
96 lines (74 loc) · 3.49 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
87
88
89
90
91
92
93
94
95
96
# 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.36.0-dev
# mariadb-operator
IMG_NAME ?= docker-registry3.mariadb.com/mariadb-operator/mariadb-operator
IMG ?= $(IMG_NAME):$(VERSION)
IMG_ENT_NAME ?= docker-registry2.mariadb.com/mariadb/mariadb-operator-enterprise
IMG_ENT ?= $(IMG_ENT_NAME):$(VERSION)
# mariadb
RELATED_IMAGE_MARIADB_NAME ?= docker-registry1.mariadb.com/library/mariadb
RELATED_IMAGE_MARIADB_VERSION ?= 11.4.3
RELATED_IMAGE_MARIADB ?= $(RELATED_IMAGE_MARIADB_NAME):$(RELATED_IMAGE_MARIADB_VERSION)
RELATED_IMAGE_MARIADB_ENT_NAME ?= docker-registry.mariadb.com/enterprise-server
RELATED_IMAGE_MARIADB_ENT_VERSION ?= 10.6.18-14.1
RELATED_IMAGE_MARIADB_ENT ?= $(RELATED_IMAGE_MARIADB_ENT_NAME):$(RELATED_IMAGE_MARIADB_ENT_VERSION)
# maxscale
RELATED_IMAGE_MAXSCALE_NAME ?= docker-registry2.mariadb.com/mariadb/maxscale
RELATED_IMAGE_MAXSCALE_VERSION ?= 23.08.5
RELATED_IMAGE_MAXSCALE ?= $(RELATED_IMAGE_MAXSCALE_NAME):$(RELATED_IMAGE_MAXSCALE_VERSION)
RELATED_IMAGE_MAXSCALE_ENT_NAME ?= docker-registry2.mariadb.com/mariadb/maxscale
RELATED_IMAGE_MAXSCALE_ENT_VERSION ?= 23.08.6-ubi-1
RELATED_IMAGE_MAXSCALE_ENT ?= $(RELATED_IMAGE_MAXSCALE_ENT_NAME):$(RELATED_IMAGE_MAXSCALE_ENT_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)
RELATED_IMAGE_EXPORTER_ENT_NAME ?= docker-registry2.mariadb.com/mariadb/mariadb-prometheus-exporter-ubi
RELATED_IMAGE_EXPORTER_ENT_VERSION ?= v0.0.1
RELATED_IMAGE_EXPORTER_ENT ?= $(RELATED_IMAGE_EXPORTER_ENT_NAME):$(RELATED_IMAGE_EXPORTER_ENT_VERSION)
# maxscale-exporter
RELATED_IMAGE_EXPORTER_MAXSCALE_NAME ?= docker-registry2.mariadb.com/mariadb/maxscale-prometheus-exporter-ubi
RELATED_IMAGE_EXPORTER_MAXSCALE_VERSION ?= v0.0.1
RELATED_IMAGE_EXPORTER_MAXSCALE ?= $(RELATED_IMAGE_EXPORTER_MAXSCALE_NAME):$(RELATED_IMAGE_EXPORTER_MAXSCALE_VERSION)
RELATED_IMAGE_EXPORTER_MAXSCALE_ENT_NAME ?= docker-registry2.mariadb.com/mariadb/maxscale-prometheus-exporter-ubi
RELATED_IMAGE_EXPORTER_MAXSCALE_ENT_VERSION ?= v0.0.1
RELATED_IMAGE_EXPORTER_MAXSCALE_ENT ?= $(RELATED_IMAGE_EXPORTER_MAXSCALE_ENT_NAME):$(RELATED_IMAGE_EXPORTER_MAXSCALE_ENT_VERSION)
# galera
MARIADB_GALERA_LIB_PATH ?= /usr/lib/galera/libgalera_smm.so
MARIADB_GALERA_LIB_PATH_ENT ?= /usr/lib64/galera/libgalera_smm.so
# docker
MARIADB_DOCKER_REPO ?= https://github.com/MariaDB/mariadb-docker
MARIADB_DOCKER_COMMIT_HASH ?= 8b9a47d0544826a8fb7c01b4308b400c3f6e529f
MARIADB_ENTRYPOINT_PATH ?= pkg/embed/mariadb-docker
MARIADB_ENTRYPOINT_VERSION ?= 11.4
MARIADB_ENTRYPOINT_VERSION_ENT ?= 10.6
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/docs.mk
include make/gen.mk
include make/helm.mk
include make/net.mk
include make/openshift.mk
include make/pki.mk