-
-
Notifications
You must be signed in to change notification settings - Fork 542
/
Makefile
52 lines (39 loc) · 998 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
define NOLOGGING
logging:
driver: none
endef
export NOLOGGING
default:
docker pull bennythink/ytdlbot
bot:
make
docker-compose up -d
docker system prune -a --volumes -f
worker:
make
docker-compose -f worker.yml up -d
docker system prune -a --volumes -f
sleep 5
weak-worker:
make
docker-compose --compatibility -f worker.yml up -d
docker system prune -a --volumes -f
sleep 5
upgrade-all-worker:
bash upgrade_worker.sh
tag:
git tag -a v$(shell date "+%Y-%m-%d")_$(shell git rev-parse --short HEAD) -m v$(shell date "+%Y-%m-%d")
git push --tags
nolog:
echo "$$NOLOGGING">> worker.yml
flower:
echo 'import dbm;dbm.open("data/flower","n");exit()'| python3
up:
docker build -t bennythink/ytdlbot:latest .
docker-compose -f docker-compose.yml -f worker.yml up -d
ps:
docker-compose -f docker-compose.yml -f worker.yml ps
down:
docker-compose -f docker-compose.yml -f worker.yml down
logs:
docker-compose -f docker-compose.yml -f worker.yml logs -f worker ytdl