for to have latest for jackett, radarr, sonarr

This commit is contained in:
Alexandre
2020-12-04 14:50:56 +01:00
parent 4ad51842a1
commit 541a0f549b
27 changed files with 506 additions and 0 deletions

20
sonarr/CHANGELOG.md Normal file
View File

@@ -0,0 +1,20 @@
## 0.4.1
- Mount /media folder
## 0.4.0
- Update sonarr to 2.0.0.5344 (linuxserver/sonarr:2.0.0.5344-ls53)
## 0.3.0
- not a legacy addon anymore
- Update base image to linuxserver/sonarr:2.0.0.5338-ls50
## 0.2.2
- set snapshot_exclude for logs and MediaCover
## 0.2.0
- Update sonarr to 2.0.0.5338 (linuxserver/sonarr:2.0.0.5338-ls31)

21
sonarr/Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
ARG BUILD_FROM
# hadolint ignore=DL3006
FROM $BUILD_FROM
RUN curl -J -L -o /tmp/bashio.tar.gz \
"https://github.com/hassio-addons/bashio/archive/v0.7.1.tar.gz" \
&& mkdir /tmp/bashio \
&& tar zxvf \
/tmp/bashio.tar.gz \
--strip 1 -C /tmp/bashio \
\
&& mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -fr /tmp/*
# use /data instead of /config for hass.io environment
RUN sed -i "s|/config|/config/sonarr|g" /etc/services.d/sonarr/run \
&& sed -i "s|/config|/config/sonarr|g" /etc/cont-init.d/30-config
# copy local files
COPY root/ /

27
sonarr/README.md Normal file
View File

@@ -0,0 +1,27 @@
# Hassio Add-ons by petersendev: Sonarr
## About
[Sonarr](https://sonarr.tv/) (formerly NZBdrone) is a PVR for usenet and bittorrent users. It can monitor multiple RSS feeds for new episodes of your favorite shows and will grab, sort and rename them. It can also be configured to automatically upgrade the quality of files already downloaded when a better quality format becomes available.
This addon is based on the [docker image](https://github.com/linuxserver/docker-sonarr) from linuxserver.io.
## Installation
The installation of this add-on is pretty straightforward and not different in
comparison to installing any other Hass.io add-on.
1. [Add my Hass.io add-ons repository][repository] to your Hass.io instance.
1. Install this add-on.
1. Click the `Save` button to store your configuration.
1. Start the add-on.
1. Check the logs of the add-on to see if everything went well.
1. Carefully configure the add-on to your preferences, see the official documentation for for that.
## Configuration
Webui can be found at `<your-ip>:8989`.
[repository]: https://github.com/petersendev/hassio-addons

13
sonarr/build.json Normal file
View File

@@ -0,0 +1,13 @@
{
"build_from_template": {
"image": "linuxserver/sonarr",
"version": "latest"
},
"build_from": {
"armhf": "linuxserver/sonarr:arm32v7-latest",
"aarch64": "linuxserver/sonarr:arm64v8-latest",
"amd64": "linuxserver/sonarr:amd64-latest"
},
"squash": false,
"args": {}
}

47
sonarr/config.json Normal file
View File

@@ -0,0 +1,47 @@
{
"name": "sonarr",
"version": "0.4.1",
"slug": "sonarr",
"legacy": false,
"maintenance": {
"github_release": "https://github.com/linuxserver/docker-sonarr",
"version_regex": "(\\d+\\.\\d+\\.\\d+\\.\\d+)-(ls\\d+)"
},
"description": "PVR for usenet and bittorrent users",
"url": "https://github.com/petersendev/hassio-addons/tree/master/sonarr#readme",
"startup": "services",
"arch": [
"aarch64",
"amd64",
"armv7",
"armhf"
],
"ports": {
"8989/tcp": 8989
},
"ports_description": {
"8989/tcp": "web interface"
},
"map": [
"config:rw",
"share:rw",
"media:rw",
"ssl"
],
"webui": "http://[HOST]:[PORT:8989]",
"boot": "auto",
"options": {
"PUID": 1001,
"PGID": 1001
},
"schema": {
"PUID": "int",
"PGID": "int",
"TZ": "str?"
},
"snapshot_exclude": [
"**/Backups/*",
"**/logs/*",
"**/MediaCover/*"
]
}

BIN
sonarr/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
sonarr/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bashio
for k in $(bashio::jq "${__BASHIO_ADDON_CONFIG}" 'keys | .[]'); do
printf "$(bashio::config $k)" > /var/run/s6/container_environment/$k
done

View File

@@ -0,0 +1,19 @@
#!/usr/bin/with-contenv bash
if [ ! -d /share/storage/tv ]; then
echo "Creating /share/storage/tv"
mkdir -p /share/storage/tv
chown -R abc:abc /share/storage/tv
fi
if [ ! -d /share/downloads ]; then
echo "Creating /share/downloads"
mkdir -p /share/downloads
chown -R abc:abc /share/downloads
fi
if [ ! -d /config/sonarr ]; then
echo "Creating /config/sonarr"
mkdir -p /config/sonarr
chown -R abc:abc /config/sonarr
fi