Skip to content

Commit

Permalink
upgrade to 4.0.0.738
Browse files Browse the repository at this point in the history
  • Loading branch information
SaswatPadhi committed Dec 22, 2023
1 parent 13eb245 commit 49b5a3e
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 33 deletions.
45 changes: 23 additions & 22 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand All @@ -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" ]
Expand Down
33 changes: 23 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# docker_sonarr <a href='https://github.com/padhi-homelab/docker_sonarr/actions?query=workflow%3A%22Docker+CI+Release%22'><img align='right' src='https://img.shields.io/github/actions/workflow/status/padhi-homelab/docker_sonarr/docker-release.yml?branch=main&logo=github&logoWidth=24&style=flat-square'></img></a>
# docker_sonarr

<a href='https://hub.docker.com/r/padhihomelab/sonarr'><img src='https://img.shields.io/docker/image-size/padhihomelab/sonarr/latest?label=size%20%5Blatest%5D&logo=docker&logoWidth=24&style=for-the-badge'></img></a>
<a href='https://hub.docker.com/r/padhihomelab/sonarr'><img src='https://img.shields.io/docker/image-size/padhihomelab/sonarr/testing?label=size%20%5Btesting%5D&logo=docker&logoWidth=24&style=for-the-badge'></img></a>
[![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 |
| :----------------------: | :----------------: | :----------------------: | :----------------: | :----------------: | :----------------------: | :----------------------: |
Expand All @@ -12,19 +20,24 @@ 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 \
-v /path/to/library/for/tv_shows:/tv \
-it padhihomelab/sonarr
```

Runs `Sonarr` with WebUI served on port 8989.
Runs Sonarr with WebUI served on port 8989.
<br>
To run it in background, use the `--detach` flag.

_<More details to be added soon>_
Usage with [Docker Compose] is similarly straightforward.
<br>
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
2 changes: 1 addition & 1 deletion sonarr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

set -e

mono --debug /sonarr/Sonarr.exe -nobrowser -data=/config
/sonarr/Sonarr -nobrowser -data=/config

0 comments on commit 49b5a3e

Please sign in to comment.