2022-01-08 18:03:15 +08:00
|
|
|
define NOLOGGING
|
|
|
|
|
|
|
|
logging:
|
|
|
|
driver: none
|
|
|
|
endef
|
|
|
|
export NOLOGGING
|
|
|
|
|
2022-01-03 10:26:03 +08:00
|
|
|
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:
|
2022-01-07 18:43:59 +08:00
|
|
|
git tag -a v$(shell date "+%Y-%m-%d")_$(shell git rev-parse --short HEAD) -m v$(shell date "+%Y-%m-%d")
|
2022-01-08 18:03:15 +08:00
|
|
|
git push --tags
|
|
|
|
|
|
|
|
nolog:
|
2022-01-09 16:37:59 +08:00
|
|
|
echo "$$NOLOGGING">> worker.yml
|
|
|
|
|
|
|
|
flower:
|
|
|
|
echo 'import dbm;dbm.open("data/flower","n");exit()'| python3
|
2022-01-22 21:49:04 +08:00
|
|
|
|
|
|
|
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:
|
2022-02-02 14:43:30 +08:00
|
|
|
docker-compose -f docker-compose.yml -f worker.yml down
|
|
|
|
|
|
|
|
logs:
|
|
|
|
docker-compose -f docker-compose.yml -f worker.yml logs -f worker ytdl
|