mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
add sonarr and radarr
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
107fe229d4
commit
8e47167638
|
@ -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
35
radarr/Dockerfile
Normal 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
15
radarr/entrypoint.sh
Executable 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
34
sonarr/Dockerfile
Normal 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
15
sonarr/entrypoint.sh
Executable 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..."
|
Loading…
Reference in New Issue
Block a user