forked from plynx-team/plynx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (33 loc) · 1.26 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
THIS_FILE := $(lastword $(MAKEFILE_LIST))
DOCKER_COMPOSE_FILE = ./docker-compose.yml
DOCKER_COMPOSE_DEV_FILE = ./docker-compose-dev.yml
build_backend:
PLYNX_IMAGES="backend" ./scripts/build_images.sh
build_frontend:
PLYNX_IMAGES="ui ui_dev" ./scripts/build_images.sh
build: build_backend build_frontend;
run_tests:
mkdir -p $(CURDIR)/data/resources
@$(MAKE) -f $(THIS_FILE) build_backend
docker-compose -f $(DOCKER_COMPOSE_DEV_FILE) up --abort-on-container-exit --scale workers=5 --scale frontend=0 --scale test=1
run_frontend:
cd ./ui; DISABLE_ESLINT_PLUGIN=true npm start
up:
mkdir -p ./data/resources
python -m webbrowser "http://localhost:3001/"
docker-compose -f $(DOCKER_COMPOSE_FILE) up --scale workers=1
up_local_service:
python -m webbrowser "http://localhost:3001/"
docker-compose -f $(DOCKER_COMPOSE_FILE) up --scale workers=0 --scale test=0
up_local_worker:
./scripts/run_local_worker.sh
dev:
mkdir -p ./data/resources
PLYNX_IMAGES="backend ui_dev" ./scripts/build_images.sh
python -m webbrowser "http://localhost:3001/"
docker-compose -f $(DOCKER_COMPOSE_DEV_FILE) up --abort-on-container-exit --scale api=1 --scale test=0 --scale frontend=0 --scale workers=0
build_package:
python setup.py sdist
python setup.py bdist_wheel
pytest:
python -m pytest