-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
72 lines (56 loc) · 1.51 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
SHELL=/bin/bash
.PHONY: streamlit
.PHONY: streamlitd
.PHONY: local
.PHONY: locald
.PHONY: docker
.PHONY: pre-commit
.PHONY: tests
.PHONY: docs
.PHONY: requirements
.PHONY: kill-locald
.PHONY: kill-streamlitd
.PHONY: ps-locald
.PHONY: fasthtml
.PHONY: fasthtmld
# start streamlit dashboard
streamlit:
streamlit run ./dashboard/streamlit-dashboard.py --server.port 8501
# start streamlit dashboard as a daemon with no log file
streamlitd:
nohup streamlit run ./dashboard/streamlit-dashboard.py --server.port 8501 > /dev/null 2>&1 &
# start dagster locally
local:
dagster dev -f anomstack/main.py
# start dagster locally as a daemon with no log file
locald:
nohup dagster dev -f anomstack/main.py > /dev/null 2>&1 &
# kill any running dagster process
kill-locald:
kill -9 $(shell ps aux | grep dagster | grep -v grep | awk '{print $$2}')
# kill any running streamlit process
kill-streamlitd:
kill -9 $(shell ps aux | grep streamlit | grep -v grep | awk '{print $$2}')
# list any running dagster process
ps-locald:
ps aux | grep dagster | grep -v grep
# start docker containers
docker:
docker compose up -d --build
# pre-commit
pre-commit:
pre-commit run --all-files --config .pre-commit-config.yaml
# run tests
tests:
pytest -v
# setup local development environment and install dependencies
dev:
pre-commit install
docs:
cd docs && yarn start
requirements:
pip-compile requirements.compile
fasthtml:
python dashboard/fasthtml-dashboard.py
fasthtmld:
nohup python dashboard/fasthtml-dashboard.py > /dev/null 2>&1 &