diff --git a/Dockerfile b/Dockerfile index 5430cf8..17a24c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,18 +14,18 @@ RUN \ wget && \ apk add --no-cache \ --repository http://nl.alpinelinux.org/alpine/edge/testing \ - mono + mono && \ # install jackett -RUN \ mkdir -p \ /app/Jackett && \ jack_tag=$(curl -sX GET "https://api.github.com/repos/Jackett/Jackett/releases/latest" \ | awk '/tag_name/{print $4;exit}' FS='[""]') && \ curl -o \ - /tmp/jacket.tar.gz -L \ + /tmp/jacket.tar.gz -L \ https://github.com/Jackett/Jackett/releases/download/$jack_tag/Jackett.Binaries.Mono.tar.gz && \ - tar xvf /tmp/jacket.tar.gz -C \ + tar xf \ + /tmp/jacket.tar.gz -C \ /app/Jackett --strip-components=1 && \ # cleanup diff --git a/README.md b/README.md index c279deb..564f18f 100644 --- a/README.md +++ b/README.md @@ -64,9 +64,9 @@ More info at [Jackett](https://github.com/Jackett/Jackett). * To monitor the logs of the container in realtime `docker logs -f jackett`. - ## Versions ++ **22.09.16:** Remove autoupdate, tidy up Dockerfile. + **10.09.16:** Add layer badges to README. + **28.08.16:** Add badges to README. + **06.08.16:** Rebase to alpine linux for smaller image. diff --git a/root/etc/cont-init.d/20-update b/root/etc/cont-init.d/20-update deleted file mode 100644 index d514f7d..0000000 --- a/root/etc/cont-init.d/20-update +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/with-contenv bash - -# opt out for autoupdates -[ "$ADVANCED_DISABLEUPDATES" ] && exit 0 - - -# determine latest remote version -jack_remote="$(wget -q https://github.com/Jackett/Jackett/releases/latest -O - | grep -E /tag/ | awk -F "[><]" '{print $3}')" - -# get local version -jack_local="$(mono /app/Jackett/JackettConsole.exe --version | sed -e 's/.*t//' -e "s/\.0.*//")" - -# test if we need to update -if [ "${jack_remote//[!0-9]/}" -gt "${jack_local//[!0-9]/}" ]; then -rm -rf /app/Jackett -curl -o /tmp/jacket.tar.gz -L https://github.com/Jackett/Jackett/releases/download/"$jack_remote"/Jackett.Binaries.Mono.tar.gz -mkdir -p /app/Jackett -tar xvf /tmp/jacket.tar.gz -C /app/Jackett --strip-components=1 -rm /tmp/jacket.tar.gz -fi - -chown -R abc:abc /app - - - diff --git a/root/etc/cont-init.d/30-config b/root/etc/cont-init.d/30-config index ee1f23b..409d788 100644 --- a/root/etc/cont-init.d/30-config +++ b/root/etc/cont-init.d/30-config @@ -1,3 +1,6 @@ #!/usr/bin/with-contenv bash -chown -R abc:abc /app /config /downloads +chown -R abc:abc \ + /app \ + /config \ + /downloads diff --git a/root/etc/services.d/jackett/run b/root/etc/services.d/jackett/run index 0ed851f..b43feea 100644 --- a/root/etc/services.d/jackett/run +++ b/root/etc/services.d/jackett/run @@ -1,3 +1,4 @@ #!/usr/bin/with-contenv bash -s6-setuidgid abc mono /app/Jackett/JackettConsole.exe +exec \ + s6-setuidgid abc mono /app/Jackett/JackettConsole.exe