ytdlbot/Makefile
BennyThink f3ca4437ea
upgrade pyrogram to 1.3.6
might fix next server salt
2022-01-22 22:00:32 +08:00

49 lines
919 B
Makefile

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