forked from flyteorg/flyte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (57 loc) · 2.14 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
export REPOSITORY=flyte
define PIP_COMPILE
pip-compile $(1) --upgrade --verbose
endef
.PHONY: update_boilerplate
update_boilerplate:
@boilerplate/update.sh
.PHONY: kustomize
kustomize:
KUSTOMIZE_VERSION=3.9.2 bash script/generate_kustomize.sh
.PHONY: helm
helm: ## Generate K8s Manifest from Helm Charts.
bash script/generate_helm.sh
.PHONY: release_automation
release_automation:
mkdir -p release
bash script/release.sh
bash script/generate_config_docs.sh
.PHONY: deploy_sandbox
deploy_sandbox:
bash script/deploy.sh
.PHONY: end2end_execute
end2end_execute: ## Execute tests in the current kubernetes context
@end2end/execute.sh
.PHONY: install-piptools
install-piptools: ## Install pip-tools
pip install -U pip-tools
.PHONY: doc-requirements.txt
doc-requirements.txt: doc-requirements.in install-piptools
$(call PIP_COMPILE,doc-requirements.in)
.PHONY: requirements.txt
requirements.txt: requirements.in install-piptools
$(call PIP_COMPILE,requirements.in)
.PHONY: stats
stats:
@generate-dashboard -o deployment/stats/prometheus/flytepropeller-dashboard.json stats/flytepropeller_dashboard.py
@generate-dashboard -o deployment/stats/prometheus/flyteadmin-dashboard.json stats/flyteadmin_dashboard.py
@generate-dashboard -o deployment/stats/prometheus/flyteuser-dashboard.json stats/flyteuser_dashboard.py
.PHONY: prepare_artifacts
prepare_artifacts:
bash script/prepare_artifacts.sh
.PHONE: helm_update
helm_update: ## Update helm charts' dependencies.
helm dep update ./charts/flyte/
.PHONY: helm_install
helm_install: ## Install helm charts
helm install flyte --debug ./charts/flyte -f ./charts/flyte/values.yaml --create-namespace --namespace=flyte
.PHONY: helm_upgrade
helm_upgrade: ## Upgrade helm charts
helm upgrade flyte --debug ./charts/flyte -f ./charts/flyte/values.yaml --create-namespace --namespace=flyte
.PHONY: docs
docs:
make -C rsts clean html SPHINXOPTS=-W
.PHONY: help
help: SHELL := /bin/sh
help: ## List available commands and their usage
@awk 'BEGIN {FS = ":.*?##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[0-9a-zA-Z_-]+:.*?##/ { printf " \033[36m%-20s\033[0m %s\n", $$1, $$2 } ' $(MAKEFILE_LIST)