forked from mindsdb/mindsdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (24 loc) · 772 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
27
28
29
30
install_mindsdb:
pip install -e .
pip install -r requirements/requirements-dev.txt
pre-commit install
install_handler:
@if [[ -n "$(HANDLER_NAME)" ]]; then\
pip install -e .[$(HANDLER_NAME)];\
else\
echo 'Please set $$HANDLER_NAME to the handler to install.';\
fi
precommit:
pre-commit install
pre-commit run --files $$(git diff --cached --name-only)
run_mindsdb:
python -m mindsdb
check:
python tests/scripts/check_requirements.py
python tests/scripts/check_version.py
python tests/scripts/check_print_statements.py
build_docker:
docker buildx build -t mdb --load -f docker/mindsdb.Dockerfile .
run_docker: build_docker
docker run -it -p 47334:47334 mdb
.PHONY: install_mindsdb install_handler precommit run_mindsdb check build_docker run_docker