From 49b5a3eb0afe50db92e95840260d83f6cb167020 Mon Sep 17 00:00:00 2001 From: Saswat Padhi Date: Fri, 22 Dec 2023 01:27:41 +0000 Subject: [PATCH] upgrade to 4.0.0.738 --- Dockerfile | 45 +++++++++++++++++++++++---------------------- README.md | 33 +++++++++++++++++++++++---------- sonarr.sh | 2 +- 3 files changed, 47 insertions(+), 33 deletions(-) diff --git a/Dockerfile b/Dockerfile index d91a38a..0c0a12d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,21 @@ -FROM padhihomelab/debian-base:11.6_0.19.0_git.212b7514 +FROM padhihomelab/alpine-base:3.19.0_0.19.0_0.2 as base +ARG TARGETARCH -ARG SONARR_VERSION=3.0.10.1567 +FROM base AS base-amd64 +ENV SONARR_ARCH=x64 -ADD "https://download.sonarr.tv/v3/main/${SONARR_VERSION}/Sonarr.main.${SONARR_VERSION}.linux.tar.gz" \ +FROM base AS base-arm64 +ENV SONARR_ARCH=arm64 + +FROM base AS base-armv7 +ENV SONARR_ARCH=arm + +FROM base-${TARGETARCH}${TARGETVARIANT} + +ARG SONARR_VERSION=4.0.0.738 +ARG SONARR_BRANCH=develop + +ADD "https://download.sonarr.tv/v4/${SONARR_BRANCH}/${SONARR_VERSION}/Sonarr.${SONARR_BRANCH}.${SONARR_VERSION}.linux-musl-${SONARR_ARCH}.tar.gz" \ /tmp/sonarr.tar.gz COPY sonarr.sh \ @@ -12,29 +25,17 @@ COPY entrypoint-scripts \ RUN chmod +x /etc/docker-entrypoint.d/99-extra-scripts/*.sh \ /usr/local/bin/sonarr \ + && apk add --no-cache --update \ + icu-libs \ + libintl \ + libmediainfo \ + sqlite-libs \ + tzdata \ && cd /tmp \ && tar -xvzf sonarr.tar.gz \ && rm -rf Sonarr/Sonarr.Update \ /tmp/sonarr.tar.gz \ - && mv /tmp/Sonarr /sonarr \ - && apt update \ - && apt install -yq apt-transport-https \ - dirmngr \ - gnupg \ - ca-certificates \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - # TODO: Switch to `stable-bullseye` channel when available - && echo "deb https://download.mono-project.com/repo/debian stable-buster main" | tee /etc/apt/sources.list.d/mono-stable.list \ - && update-ca-certificates -v \ - && apt update \ - && apt upgrade -yq \ - && apt install -yq ca-certificates-mono \ - libmediainfo0v5 \ - mono-devel \ - tzdata \ - wget \ - && apt autoremove -yq \ - && apt clean + && mv /tmp/Sonarr /sonarr EXPOSE 8989 VOLUME [ "/config", "/downloads", "/tv" ] diff --git a/README.md b/README.md index 0b26d58..0f6a833 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,17 @@ -# docker_sonarr +# docker_sonarr - - +[![build status](https://img.shields.io/github/actions/workflow/status/padhi-homelab/docker_sonarr/docker-release.yml?label=BUILD&branch=main&logo=github&logoWidth=24&style=flat-square)](https://github.com/padhi-homelab/docker_sonarr/actions?query=workflow%3A%22Docker+CI+Release%22) +[![testing size](https://img.shields.io/docker/image-size/padhihomelab/sonarr/testing?label=SIZE%20%5Btesting%5D&logo=docker&logoColor=skyblue&logoWidth=24&style=flat-square)](https://hub.docker.com/r/padhihomelab/sonarr/tags) +[![latest size](https://img.shields.io/docker/image-size/padhihomelab/sonarr/latest?label=SIZE%20%5Blatest%5D&logo=docker&logoColor=skyblue&logoWidth=24&style=flat-square)](https://hub.docker.com/r/padhihomelab/sonarr/tags) + +[![latest version](https://img.shields.io/docker/v/padhihomelab/sonarr/latest?label=LATEST&logo=linux-containers&logoWidth=20&labelColor=darkmagenta&color=gold&style=for-the-badge)](https://hub.docker.com/r/padhihomelab/sonarr/tags) +[![image pulls](https://img.shields.io/docker/pulls/padhihomelab/sonarr?label=PULLS&logo=data:image/svg%2bxml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB3aWR0aD0iODAwcHgiIGhlaWdodD0iODAwcHgiIHZpZXdCb3g9IjAgMCAzMiAzMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBmaWxsPSIjZmZmIj4KICAgIDxwYXRoIGQ9Ik0yMC41ODcsMTQuNjEzLDE4LDE3LjI0NlY5Ljk4QTEuOTc5LDEuOTc5LDAsMCwwLDE2LjAyLDhoLS4wNEExLjk3OSwxLjk3OSwwLDAsMCwxNCw5Ljk4djYuOTYzbC0uMjYtLjA0Mi0yLjI0OC0yLjIyN2EyLjA5MSwyLjA5MSwwLDAsMC0yLjY1Ny0uMjkzQTEuOTczLDEuOTczLDAsMCwwLDguNTgsMTcuNGw2LjA3NCw2LjAxNmEyLjAxNywyLjAxNywwLDAsMCwyLjgzMywwbDUuOTM0LTZhMS45NywxLjk3LDAsMCwwLDAtMi44MDZBMi4wMTYsMi4wMTYsMCwwLDAsMjAuNTg3LDE0LjYxM1oiLz4KICAgIDxwYXRoIGQ9Ik0xNiwwQTE2LDE2LDAsMSwwLDMyLDE2LDE2LDE2LDAsMCwwLDE2LDBabTAsMjhBMTIsMTIsMCwxLDEsMjgsMTYsMTIuMDEzLDEyLjAxMywwLDAsMSwxNiwyOFoiLz4KICA8L2c+Cjwvc3ZnPgo=&logoWidth=20&labelColor=teal&color=gold&style=for-the-badge)](https://hub.docker.com/r/padhihomelab/sonarr) -A multiarch [Sonarr] Docker image, based on [Debian Linux]. +--- + +An [Alpine]-based multiarch [Sonarr] Docker image. + +Supported platforms: | 386 | amd64 | arm/v6 | arm/v7 | arm64 | ppc64le | s390x | | :----------------------: | :----------------: | :----------------------: | :----------------: | :----------------: | :----------------------: | :----------------------: | @@ -12,8 +20,7 @@ A multiarch [Sonarr] Docker image, based on [Debian Linux]. ## Usage ``` -docker run --detach \ - -p 8989:8989 \ +docker run -p 8989:8989 \ -e DOCKER_UID=`id -u` \ -v /path/to/store/configs:/configs \ -v /path/to/client/downloads:/downloads \ @@ -21,10 +28,16 @@ docker run --detach \ -it padhihomelab/sonarr ``` -Runs `Sonarr` with WebUI served on port 8989. +Runs Sonarr with WebUI served on port 8989. +
+To run it in background, use the `--detach` flag. -__ +Usage with [Docker Compose] is similarly straightforward. +
+As an example, you can see my configuration in [services/monitarr]. -[Debian Linux]: https://debian.org/ -[Sonarr]: https://sonarr.tv/ +[Alpine]: https://alpinelinux.org/ +[docker compose]: https://docs.docker.com/compose/ +[Sonarr]: https://sonarr.tv/ +[services/monitarr]: https://github.com/padhi-homelab/services/tree/master/monitarr diff --git a/sonarr.sh b/sonarr.sh index aea9453..c4cbf1b 100644 --- a/sonarr.sh +++ b/sonarr.sh @@ -2,4 +2,4 @@ set -e -mono --debug /sonarr/Sonarr.exe -nobrowser -data=/config +/sonarr/Sonarr -nobrowser -data=/config