nICEnnnnnnnLee/BilibiliLiveRecorder

希望能出个docker版本的

Samre opened this issue · 3 comments

Samre commented
希望能出个docker版本的

程序并不复杂,也没什么依赖。你如果一定要用docker的话,下载release压缩包,pull一个java镜像使用就行了。

BILI_WORK_DIR=/path/to/work

LATEST_RELEASE=$(curl https://api.github.com/repos/nICEnnnnnnnLee/BilibiliLiveRecorder/releases/latest)
LATEST_VERSION=$(echo $LATEST_RELEASE | sed -e 's/.*"tag_name": *"V\([^"]*\)".*/\1/')
ARTIFACT_URL="https://github.com/nICEnnnnnnnLee/BilibiliLiveRecorder/releases/download/V$LATEST_VERSION/BilibiliLiveRecord.v$LATEST_VERSION.zip"

cd $BILI_WORK_DIR
curl -LJO $ARTIFACT_URL
unzip -o "BilibiliLiveRecord.v$LATEST_VERSION.zip"
docker pull openjdk:11
docker run -d -v "$BILI_WORK_DIR:/home" -w /home --name bili_record openjdk:11 \
    java -Dfile.encoding=utf-8 -jar BiliLiveRecorder.jar "debug=false&check=false&delete=false&liver=douyu&id=233233&qn=0&retry=5"
Samre commented

ok

由于长期没有状态更新,该问题自动关闭。如有需要可重新打开。