Add radarr

This commit is contained in:
Jean Froment 2017-08-13 16:51:19 +02:00
parent 2f79d9f122
commit 1c0cbf3581
4 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,29 @@
FROM lsiobase/mono
MAINTAINER sparklyballs
# environment settings
ENV XDG_CONFIG_HOME="/config/xdg"
# install radarr
RUN \
radarr_tag=$(curl -sX GET "https://api.github.com/repos/Radarr/Radarr/releases" \
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
mkdir -p \
/opt/radarr && \
curl -o \
/tmp/radar.tar.gz -L \
"https://github.com/galli-leo/Radarr/releases/download/${radarr_tag}/Radarr.develop.${radarr_tag#v}.linux.tar.gz" && \
tar ixzf \
/tmp/radar.tar.gz -C \
/opt/radarr --strip-components=1 && \
# clean up
rm -rf \
/tmp/*
# add local files
COPY /root /
# ports and volumes
EXPOSE 7878
VOLUME /config /downloads /movies

View File

@ -0,0 +1,7 @@
#!/usr/bin/with-contenv bash
# permissions
chown -R abc:abc \
/config \
/opt

View File

@ -0,0 +1,7 @@
#!/usr/bin/with-contenv bash
cd /opt/radarr || exit
exec \
s6-setuidgid abc mono --debug Radarr.exe \
-nobrowser -data=/config

View File

@ -99,3 +99,20 @@ services:
environment: environment:
- PGID=0 - PGID=0
- PUID=0 - PUID=0
radarr:
image: fromenje/seedbox:radarr
build: Dockerfile/radarr
restart: always
networks:
- main
volumes:
- config:/config
- downloads:/downloads
- movies:/movies
env_file:
- config
environment:
- PGID=0
- PUID=0
- TZ=Europe/Paris