From 55bc7ce0f89dc286d87534ed0fc4743490dcf51b Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Tue, 13 May 2025 15:52:37 +0800 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20entrypoint=20=D0=B4=D0=BB=D1=8F=20=D1=87=D0=B5?= =?UTF-8?q?=D0=BA=D0=B5=D1=80=D0=B0:=20=D0=B7=D0=B0=D0=B3=D1=80=D1=83?= =?UTF-8?q?=D0=B7=D0=BA=D0=B0=20=D0=B3=D0=BE=D1=82=D0=BE=D0=B2=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=20=D0=B1=D0=B8=D0=BD=D0=B0=D1=80=D1=8F=20=D0=B2=D0=BC?= =?UTF-8?q?=D0=B5=D1=81=D1=82=D0=BE=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=B8=D0=BB?= =?UTF-8?q?=D1=8F=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/checker/entrypoint.sh | 16 +++++++++++----- dockerfile.checker | 3 ++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/docker/checker/entrypoint.sh b/docker/checker/entrypoint.sh index b447819..8067d3a 100755 --- a/docker/checker/entrypoint.sh +++ b/docker/checker/entrypoint.sh @@ -3,18 +3,24 @@ echo "CHECKER_WAIT=$CHECKER_WAIT" echo "CHECKER_INIFILE=$CHECKER_INIFILE" echo "CHECKER_TAGFILE=$CHECKER_TAGFILE" +binary="$PWD/bin/iptvc" -binary="/app/bin/linux_amd64/iptvc" -args="check -i $CHECKER_INIFILE -t $CHECKER_TAGFILE" - -go get -make linux +if [ ! -f "$binary" ]; then + echo "Downloading latest iptvc..." + wget https://git.axenov.dev/IPTV/iptvc/releases/download/latest/linux_amd64.zip + [ ! -d "$PWD/bin" ] && mkdir "$PWD/bin" + unzip -o linux_amd64.zip -d "$PWD/bin" + rm -rf linux_amd64.zip +fi if [ ! -f "$binary" ]; then echo "Not found: $binary" exit 1 fi +$binary version + +args="check -i $CHECKER_INIFILE -t $CHECKER_TAGFILE" while true; do echo echo "Running: $binary $args" diff --git a/dockerfile.checker b/dockerfile.checker index 47e676c..f33ea93 100644 --- a/dockerfile.checker +++ b/dockerfile.checker @@ -4,7 +4,8 @@ RUN apk --no-cache add \ bash \ tzdata \ go \ - make + make \ + libc6-compat RUN mkdir /app && \ chmod 777 /app