-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (28 loc) · 1.05 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
install:
poetry install --with=dev
lint:
poetry run pre-commit run -a
unit-tests:
poetry run pytest -sv ./src
run-local:
poetry run uvicorn change_machine_service.api:app --reload
run-docker:
docker-compose -f ./docker-compose-single.yaml up --build
cleanup-docker:
docker-compose -f ./docker-compose-single.yaml down --remove-orphans -v
run-docker-elk:
docker-compose -f docker-compose-elk.yaml up --build
cleanup-docker-elk:
docker-compose -f docker-compose-elk.yaml down --remove-orphans -v
setup-kibana:
KIBANA_URL=http://localhost:5601 \
DATA_VIEW_CONFIG_NDJSON=docker/kibana/coins-dashboard.ndjson \
sh ./docker/kibana/curl-create-dashboard.sh
open-kibana:
open http://localhost:5601/app/dashboards
run-load-test:
docker-compose -f docker-compose-locust.yaml up --scale locust_worker=2
cleanup-load-test:
docker-compose -f docker-compose-locust.yaml down
# disable make caching:
.PHONY: install lint unit-tests run-local run-docker cleanup-docker run-docker-elk cleanup-docker-elk open-kibana setup-kibana run-load-test cleanup-load-test