-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
91 lines (62 loc) · 2.13 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
MLFLOW_TRACKING_DIRECTORY := $(HOME)/mnt/mlruns
export MLFLOW_TRACKING_DIRECTORY
setup-model-registry:
mkdir -p ${MLFLOW_TRACKING_DIRECTORY}/tracking
mkdir -p ${MLFLOW_TRACKING_DIRECTORY}/artifacts
mkdir -p ${HOME}/mnt/serve
docker compose up --build -d mlflow_server
reset-model-registry:
docker compose down -v mlflow_server
rm -rf ${MLFLOW_TRACKING_DIRECTORY}/tracking
rm -rf ${MLFLOW_TRACKING_DIRECTORY}/artifacts
rm -rf ${HOME}/mnt/serve
start-mlflow-server:
docker compose up -d mlflow_server
stop-mlflow-server:
docker compose down mlflow_server
prefect-server-start:
pipenv run prefect server start
run-training-pipeline:
pipenv run python pipeline/training_pipeline.py
run-training-pipeline-s3:
pipenv run python pipeline/training_pipeline.py --use_s3
create-workpool:
pipenv run prefect work-pool create --type process train-pool
deploy-training-pipeline:
pipenv run prefect deploy -n deploy_train
start-worker:
pipenv run prefect worker start --pool 'train-pool'
run-deployed-training-pipeline:
pipenv run prefect deployment run 'training_pipeline/deploy_train'
run-deployed-training-pipeline-s3:
pipenv run prefect deployment run -p use_s3=True 'training_pipeline/deploy_train'
start-diabetes-service:
docker compose up -d diabetes_service
start-all-services:
docker compose up -d monitoring_service adminer streamlit_service
prepare-reference:
pipenv run python monitoring/prepare_reference_data.py
create-db:
pipenv run python monitoring/create_db.py
reset-db:
pipenv run python monitoring/drop_db.py
send-data-monitoring-api:
pipenv shell python monitoring/send_data_api.py
create-email-block:
pipenv run python monitoring/create_email_block.py
run-monitoring-pipeline:
pipenv run python monitoring/send_alerts.py
deploy-monitoring-pipeline:
pipenv run prefect deploy -n deploy_monitor
run-deployed-monitoring-pipeline:
pipenv run prefect deployment run send-alert/deploy_monitor
stop-all-services:
docker compose down
run-unit-test:
pipenv run pytest test/
run-integration-test:
bash integration_test/run.sh
quality-check:
pipenv run isort .
pipenv run black .
pipenv run pylint --recursive=y .