-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (43 loc) · 1.3 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
# sets the individual app to deploy with deploy_app
APP ?= paint
# To get all the subdirectories in this directory
SUBDIRS := $(wildcard */)
### Deploys all the apps in this repository (this script assumes that every subdirectory is an app)
deploy_all:
@for dir in $(SUBDIRS); do \
app_name=$$(basename $$dir); \
echo "Deploying $$app_name"; \
./local_deploy.sh $$app_name; \
done
### Deploys an individual app
# to use make deploy_app APP=<put_app_name_here>
deploy_app:
./local_deploy.sh $(APP)
### Starts up the core
start_core:
docker compose up -d
### Shuts down the core
stop_core:
docker compose down
### Shuts down the core, removes the volumes attached, then starts it up again
reset:
docker compose down -v
docker compose up -d
### Starts up the core then deploys all the apps
start:
$(MAKE) start_core
$(MAKE) deploy_all
### Shuts down the core
stop: stop_core
### Allows you to go inside the core and execute bash scripts
shell:
docker compose exec pixelaw-core bash;
### Outputs katana logs
log_katana:
docker compose exec pixelaw-core tail -n 200 -f /keiko/log/katana.log.json
### Outputs torii logs
log_torii:
docker compose exec pixelaw-core tail -f /keiko/log/torii.log
### Outputs bot logs
log_bots:
docker compose exec pixelaw-core tail -f /keiko/log/bots.log