add sonarr and radarr

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-07-14 17:53:05 -04:00
parent 107fe229d4
commit 8e47167638
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
5 changed files with 100 additions and 0 deletions

View File

@ -113,6 +113,7 @@ bitly/oauth2_proxy
Tautulli/Tautulli Tautulli/Tautulli
perkeep/perkeep perkeep/perkeep
powershell/powershell powershell/powershell
Radarr/Radarr
cesanta/docker_auth cesanta/docker_auth
ricochet-im/ricochet ricochet-im/ricochet
reverse-shell/routersploit reverse-shell/routersploit

35
radarr/Dockerfile Normal file
View File

@ -0,0 +1,35 @@
FROM alpine:latest
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
ENV LANG "en_US.UTF-8"
ENV LANGUAGE "en_US.UTF-8"
ENV TERM "xterm"
RUN apk add --no-cache \
bash \
ca-certificates \
libmediainfo \
mono \
tar \
--repository https://dl-4.alpinelinux.org/alpine/edge/testing
# https://github.com/Radarr/Radarr/releases
ENV RADARR_VERSION 0.2.0.1120
RUN mkdir -p /opt/radarr \
&& wget "https://github.com/Radarr/Radarr/releases/download/v${RADARR_VERSION}/Radarr.develop.${RADARR_VERSION}.linux.tar.gz" -O /tmp/radarr.tar.gz \
&& tar -xzvf /tmp/radarr.tar.gz -C /opt/radarr --strip-components 1 \
&& rm -rf /tmp/radarr.tar.gz
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
# Create user and change ownership
RUN addgroup -g 666 -S radarr \
&& adduser -u 666 -SHG radarr radarr \
&& mkdir -p /config \
&& chown -R radarr:radarr /opt/radarr /config
WORKDIR /opt/radarr
USER radarr
ENTRYPOINT ["entrypoint.sh"]

15
radarr/entrypoint.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -e
set -o pipefail
handle_signal() {
PID=$!
echo "Received signal. PID is ${PID}"
kill -s SIGHUP $PID
}
trap "handle_signal" SIGINT SIGTERM SIGHUP
echo "Starting radarr..."
exec mono --debug /opt/radarr/Radarr.exe --no-browser -data=/config & wait
echo "Stopping radarr..."

34
sonarr/Dockerfile Normal file
View File

@ -0,0 +1,34 @@
FROM alpine:latest
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
ENV LANG "en_US.UTF-8"
ENV LANGUAGE "en_US.UTF-8"
ENV TERM "xterm"
RUN apk add --no-cache \
bash \
ca-certificates \
libmediainfo \
mono \
tar \
--repository https://dl-4.alpinelinux.org/alpine/edge/testing
ENV SONARR_VERSION "develop"
RUN mkdir -p /opt/sonarr \
&& wget "http://update.sonarr.tv/v2/${SONARR_VERSION}/mono/NzbDrone.${SONARR_VERSION}.tar.gz" -O /tmp/sonarr.tar.gz \
&& tar -xzvf /tmp/sonarr.tar.gz -C /opt/sonarr --strip-components 1 \
&& rm -rf /tmp/sonarr.tar.gz
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
# Create user and change ownership
RUN addgroup -g 666 -S sonarr \
&& adduser -u 666 -SHG sonarr sonarr \
&& mkdir -p /config \
&& chown -R sonarr:sonarr /opt/sonarr /config
WORKDIR /opt/sonarr
USER sonarr
ENTRYPOINT ["entrypoint.sh"]

15
sonarr/entrypoint.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -e
set -o pipefail
handle_signal() {
PID=$!
echo "Received signal. PID is ${PID}"
kill -s SIGHUP $PID
}
trap "handle_signal" SIGINT SIGTERM SIGHUP
echo "Starting sonarr..."
exec mono --debug /opt/sonarr/NzbDrone.exe --no-browser -data=/config & wait
echo "Stopping sonarr..."