-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (32 loc) · 900 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
UID := $(shell id -u)
GID := $(shell id -g)
install:
$(MAKE) install_backend
$(MAKE) install_frontend
poetry run pre-commit install
copy_data:
poetry run python3 preprocessing/copy_data.py
preprocessing_build:
$(MAKE) -C preprocessing build
preprocessing_run:
$(MAKE) -C preprocessing run
lint:
poetry run pre-commit run --all-files
build: install build_frontend preprocessing_build
install_backend:
poetry install
install_frontend:
$(MAKE) -C frontend install
build_frontend:
$(MAKE) -C frontend build
run-frontend:
$(MAKE) -C frontend run
run-serve-data:
cd data/preprocessed && poetry run python -m http.server 8081
# run when deploying on server
setup: preprocessing_build preprocessing_run
run:
docker-compose build --parallel --pull
docker-compose up -d --remove-orphans
generate-selfsigned-cert:
cd cert && OWNER="${UID}.${GID}" docker-compose up --remove-orphans