-
Notifications
You must be signed in to change notification settings - Fork 60
/
Makefile
57 lines (47 loc) · 1.55 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
# Worker Variables
WORKER_CHART_NAME=prefect-worker
WORKER_CHART_PATH=./charts/prefect-worker
WORKER_RELEASE_NAME=prefect-worker
NAMESPACE=prefect
VALUES_FILE=./charts/prefect-worker/values.yaml
# Server Variables
SERVER_CHART_NAME=prefect-server
SERVER_CHART_PATH=./charts/prefect-server
SERVER_RELEASE_NAME=prefect-server
NAMESPACE=prefect
VALUES_FILE=./charts/prefect-server/values.yaml
# Prometheus Prefect Exporter Variables
PROMETHEUS_PREFECT_EXPORTER_CHART_NAME=prometheus-prefect-exporter
PROMETHEUS_PREFECT_EXPORTER_CHART_PATH=./charts/prometheus-prefect-exporter
WORKER_RELEASE_NAME=prefect-worker
NAMESPACE=prefect
VALUES_FILE=./charts/prometheus-prefect-exporter/values.yaml
.PHONY: all
all: tools
.PHONY: mise
mise:
@mise install --yes
.git/hooks/pre-commit:
@pre-commit install
.PHONY: tools
tools: mise .git/hooks/pre-commit
.PHONY: tools-list
tools-list:
@mise list --current
.PHONY: buildprom
buildprom: ## Build Prometheus Prefect Exporter Helm dependencies
helm repo add bitnami https://charts.bitnami.com/bitnami
helm dependency build $(PROMETHEUS_PREFECT_EXPORTER_CHART_PATH)
.PHONY: buildserver
buildserver: ## Build Server Helm dependencies
helm repo add bitnami https://charts.bitnami.com/bitnami
helm dependency build $(SERVER_CHART_PATH)
.PHONY: buildworker
buildworker: ## Build Worker Helm dependencies
helm repo add bitnami https://charts.bitnami.com/bitnami
helm dependency build $(WORKER_CHART_PATH)
.PHONY: buildall
buildall: buildworker buildserver buildprom
.PHONY: helmtest
helmtest: ## Run Helm unittest
./scripts/helm_unittest.sh