-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (40 loc) · 1.06 KB
/
Makefile
File metadata and controls
54 lines (40 loc) · 1.06 KB
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
CONTAINER_SERVER_NAME=server
CONTAINER_CLIENT_NAME=client
env ?= dev # get from cl or 'dev' by default
# make
# make build
# make build env=prod
build:
docker-compose build \
--build-arg BUILD_ENV=$(env) \
$(CONTAINER_SERVER_NAME) && \
docker-compose build \
--build-arg BUILD_ENV=$(env) \
$(CONTAINER_CLIENT_NAME)
build-force:
docker-compose build --force \
--build-arg BUILD_ENV=$(env) \
$(CONTAINER_SERVER_NAME) && \
docker-compose build --force \
--build-arg BUILD_ENV=$(env) \
$(CONTAINER_CLIENT_NAME)
up:
docker-compose up -d $(CONTAINER_SERVER_NAME)
down:
docker-compose down
google-auth:
python3 scripts/google_auth.py
run-client:
docker compose run --rm $(CONTAINER_CLIENT_NAME) poetry run client.py $(ARGS)
run-server:
docker compose run --rm $(CONTAINER_SERVER_NAME) poetry run python server.py
poetry-check:
poetry check
poetry-install:
poetry install
poetry-install-dev:
poetry install --with dev
poetry-hard-reset:
rm -rf .venv && poetry env remove --all && poetry cache clear --all .
test:
poetry run pytest $(ARGS)