-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
67 lines (48 loc) · 1.29 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
all: up
#INTRO
help:
@cat makefile_manual.txt
setup:
sudo service docker start
#MAIN ACTIONS
up:
sudo docker compose up --build
down:
sudo docker compose down
re: down up
ls:
@sudo docker image ls -a
@sudo docker container ls -a
@sudo docker volume ls
@sudo docker network ls -f type=custom
disk:
sudo docker system df
#CLEAN AND REMOVE
fclean:
sudo docker compose down --rmi all --volumes
del:
sudo docker system prune --force
del_vol:
sudo docker volume prune -f
del_net:
sudo docker network prune --force
purge: down fclean del del_vol del_net
#INIT DEV CONTAINERS
dev:
docker compose --file ./docker-compose-dev.yml up --build
run:
docker compose --file ./docker-compose-dev.yml down redis
docker compose --file ./docker-compose-dev.yml up redis -d
-pkill -f 'celery --workdir ./backend -A backend worker -D'
celery --workdir ./backend -A backend worker -D
-pkill -f 'python3 ./game_loop/game_loop.py'
python3 ./game_loop/game_loop.py &
python3 ./backend/manage.py migrate
python3 ./backend/manage.py runserver 0.0.0.0:8000
celery:
celery --workdir ./backend -A backend worker -l INFO
loop:
python3 ./game_loop/game_loop.py
# celery --workdir ./backend -A backend worker -D
#PHONY
.PHONY: all help setup up down re ls disk fclean del del_vol del_net purge dev run celery loop