-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
53 lines (40 loc) · 908 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
47
48
49
50
51
52
53
STORAGE_GAME=storage/game-data
STORAGE_USER=storage/user-data
VOLUMES := /goinfre/game-core-dev \
/goinfre/user-session-dev \
/goinfre/front-end-dev \
/goinfre/game-db-data \
/goinfre/user-db-data
all: create-dirs run-compose
att: run-compose
run-compose:
docker compose up --build
create-dirs:
mkdir -p $(STORAGE_GAME)
mkdir -p $(STORAGE_USER)
venv:
cd src
python3 -m venv core
source core/bin/activate
pip install django
submodule:
git submodule init
git submodule update
clean:
docker compose down
docker volume prune -a -f
sudo rm -rf $(STORAGE_GAME) $(STORAGE_USER)
w:
docker stop game-sync-session-worker
docker stop game-worker
docker start game-sync-session-worker
docker start game-worker
mkdir:
mkdir -p $(VOLUMES)
fclean:
docker compose down
docker volume prune -a -f
sudo rm -rf $(VOLUMES)
build: mkdir
docker compose up --build
re: fclean build