-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (20 loc) · 910 Bytes
/
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
# teardown
teardown:
make predictor_down
make mlflow_down
# mlflow
mlflow_up:
docker-compose -f deployment/mlflow/docker-compose.yml up -d
mlflow_down:
docker-compose -f deployment/mlflow/docker-compose.yml down
# predictor
predictor_up:
bash deployment/deploy.sh run_predictor data/model_config/phase-1/prob-1/model-1.yaml 5040
predictor_down:
PORT=5040 docker-compose -f deployment/model_predictor/docker-compose.yml down
predictor_restart:
PORT=5040 docker-compose -f deployment/model_predictor/docker-compose.yml stop
PORT=5040 docker-compose -f deployment/model_predictor/docker-compose.yml start
predictor_curl:
curl -X POST http://localhost:5040/phase-1/prob-1/predict -H "Content-Type: application/json" -d @data/curl/phase-1/prob-1/payload-1.json
curl -X POST http://localhost:5040/phase-1/prob-1/predict -H "Content-Type: application/json" -d @data/curl/phase-1/prob-1/payload-2.json