remove autoupdate "feature", tidy up Dockerfile

This commit is contained in:
sparklyballs 2016-09-22 08:21:10 +01:00
parent ff6db5d301
commit 4e4adac88e
5 changed files with 11 additions and 32 deletions

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -1,3 +1,6 @@
#!/usr/bin/with-contenv bash
chown -R abc:abc /app /config /downloads
chown -R abc:abc \
/app \
/config \
/downloads

View File

@ -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