-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (40 loc) · 1.5 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
# build
.PHONY: build/full build/lite
## build/full: builds Saint Anonymous with music player
build/full:
@docker build --tag cadav001/saint-anonymous:full --platform linux/amd64 --file ./deployments/full/Dockerfile .
## build/lite: builds Saint Anonymous without music player
build/lite:
@docker build --tag cadav001/saint-anonymous:lite --platform linux/amd64 --file ./deployments/lite/Dockerfile .
# deploy
.PHONY: deploy/full deploy/lite
## deploy/full: deploys Discord commands to server including music player's
deploy/full:
@VERSION=FULL npm run setup
## deploy/lite: deploys Discord commands to server
deploy/lite:
@npm run setup
# start
.PHONY: start/full start/lite
## start/full: starts up Saint Anonymous docker image with music player
start/full:
@docker-compose --file docker-compose.full.yml build
@docker-compose --file docker-compose.full.yml up --detach
## start/lite: starts up Saint Anonymous docker image with music player
start/lite:
@docker-compose --file docker-compose.lite.yml build
@docker-compose --file docker-compose.lite.yml up --detach
# stop
.PHONY: stop/full stop/lite
## stop/full: Stops Saint Anonymous full setup
stop/full:
@docker-compose --file docker-compose.full.yml down --volumes
## stop/lite: Stops Saint Anonymous lite setup
stop/lite:
@docker-compose --file docker-compose.lite.yml down --volumes
.PHONY: config
config:
@docker cp config.json saint-anonymous:/usr/src/bot/
.PHONY: help
help: Makefile
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'