Skip to content

Commit

Permalink
add sonarr and radarr
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Jul 14, 2018
1 parent 107fe22 commit 8e47167
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 0 deletions.
1 change: 1 addition & 0 deletions latest-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ bitly/oauth2_proxy
Tautulli/Tautulli
perkeep/perkeep
powershell/powershell
Radarr/Radarr
cesanta/docker_auth
ricochet-im/ricochet
reverse-shell/routersploit
Expand Down
35 changes: 35 additions & 0 deletions radarr/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM alpine:latest
LABEL maintainer "Jessie Frazelle <[email protected]>"

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 changes: 15 additions & 0 deletions radarr/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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 changes: 34 additions & 0 deletions sonarr/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM alpine:latest
LABEL maintainer "Jessie Frazelle <[email protected]>"

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 changes: 15 additions & 0 deletions sonarr/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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..."

0 comments on commit 8e47167

Please sign in to comment.