forked from diffgram/diffgram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (42 loc) · 1.33 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
ACTIVATE_LINUX:=. venvdiffgram/bin/activate
PYTHONEXEC:=python3
PIPEXEC:=pip3
ifeq ($(OS),Windows_NT)
export PYTHONPATH := $(shell echo %cd%)
else
export PYTHONPATH := $(shell pwd)
endif
clean:
rm -rf venvdiffgram
docker compose down
setup-env-backend:
@echo "Creating virtual environment..."
$(PYTHONEXEC) -m venv venvdiffgram
@echo "Activating virtual environment..."
@echo "Installing dependencies..."
@$(ACTIVATE_LINUX);$(PIPEXEC) install -r default/requirements.txt;$(PIPEXEC) install -r walrus/requirements.txt;$(PIPEXEC) install -r eventhandlers/requirements.txt
@echo "Done."
run-bg-services:
@echo "Running background services..."
docker compose up -d db rabbitmq minio
run-default:
@echo "Running default..."
@$(ACTIVATE_LINUX); cd default; $(PYTHONEXEC) main.py
run-walrus:
@echo "Running walrus..."
@$(ACTIVATE_LINUX); cd walrus; $(PYTHONEXEC) main.py
run-eventhandlers:
@echo "Running eventhandlers..."
@$(ACTIVATE_LINUX); cd eventhandlers; $(PYTHONEXEC) main.py
run-dispatcher:
@echo "Running dispatcher..."
@$(ACTIVATE_LINUX); cd local_dispatcher; $(PYTHONEXEC) local_dispatch.py
frontend-deps:
@echo "Installing frontend dependencies..."
@cd frontend; yarn install
frontend-run:
@echo "Running frontend..."
@cd frontend; yarn start
e2e-tests:
@echo "Running e2e tests..."
@cd frontend; yarn run cypress open