mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 06:14:07 +02:00
addition of radarr NAS
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
ARG BUILD_FROM
|
ARG BUILD_FROM
|
||||||
FROM $BUILD_FROM
|
FROM $BUILD_FROM
|
||||||
|
|
||||||
|
# copy local files
|
||||||
|
COPY root/ /
|
||||||
|
|
||||||
# MOFIFY DATA PATH
|
# MOFIFY DATA PATH
|
||||||
RUN sed -i "s|config|data|g" /defaults/autostart
|
RUN sed -i "s|config|data|g" /defaults/autostart
|
||||||
|
|
||||||
|
|||||||
43
doublecommander/root/etc/cont-init.d/50-mounts
Normal file
43
doublecommander/root/etc/cont-init.d/50-mounts
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
#!/usr/bin/with-contenv bashio
|
||||||
|
bashio::log.info 'Mounting external hdd...'
|
||||||
|
|
||||||
|
# Mount local Share if configured and if Protection Mode is active
|
||||||
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
|
bashio::log.info "Local Disks mounting.. ${MOREDISKS}" && \
|
||||||
|
for disk in $MOREDISKS
|
||||||
|
do
|
||||||
|
bashio::log.info "Mount ${disk}"
|
||||||
|
mkdir -p /share/$disk && \
|
||||||
|
if [ ! -d /share/$disk ]; then
|
||||||
|
echo "Creating /share/$disk"
|
||||||
|
mkdir -p /share/$disk
|
||||||
|
chown -R abc:abc /share/$disk
|
||||||
|
fi
|
||||||
|
mount /dev/$disk /share/$disk && \
|
||||||
|
bashio::log.info "Success!"
|
||||||
|
done || \
|
||||||
|
bashio::log.warning "Protection mode is ON. Unable to mount local drives!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
|
if bashio::config.has_value 'networkdisks'; then
|
||||||
|
MOREDISKS=$(bashio::config 'networkdisks')
|
||||||
|
CIFS_USERNAME=$(bashio::config 'cifsusername')
|
||||||
|
CIFS_PASSWORD=$(bashio::config 'cifspassword')
|
||||||
|
bashio::log.info "Network Disks mounting.. ${MOREDISKS}" && \
|
||||||
|
for disk in $MOREDISKS
|
||||||
|
do
|
||||||
|
bashio::log.info "Mount ${disk}"
|
||||||
|
mkdir -p /share/storagecifs && \
|
||||||
|
if [ ! -d /storage/storagecifs ]; then
|
||||||
|
echo "Creating /storage/storagecifs"
|
||||||
|
mkdir -p /storage/storagecifs
|
||||||
|
chown -R abc:abc /storage/storagecifs
|
||||||
|
fi
|
||||||
|
|
||||||
|
mount -t cifs -o username=$CIFS_USERNAME,password=$CIFS_PASSWORD $disk /storage/storagecifs && \
|
||||||
|
bashio::log.info "Success!"
|
||||||
|
done || \
|
||||||
|
bashio::log.warning "Protection mode is ON. Unable to mount external drives!"
|
||||||
|
fi
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "Emby beta with smb and hdd",
|
"name": "Emby beta NAS",
|
||||||
"version": "1.5",
|
"version": "1.5",
|
||||||
"slug": "emby_nas",
|
"slug": "emby_nas",
|
||||||
"legacy": false,
|
"legacy": false,
|
||||||
|
|||||||
27
radarr/CHANGELOG.md
Normal file
27
radarr/CHANGELOG.md
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
## 0.6.1
|
||||||
|
|
||||||
|
- Mount /media folder
|
||||||
|
|
||||||
|
## 0.6.0
|
||||||
|
|
||||||
|
- Update radarr to 0.2.0.1504 (linuxserver/radarr:v0.2.0.1504-ls68)
|
||||||
|
|
||||||
|
## 0.5.0
|
||||||
|
|
||||||
|
- not a legacy addon anymore
|
||||||
|
|
||||||
|
## 0.4.0
|
||||||
|
|
||||||
|
- Update radarr to 0.2.0.1480 (linuxserver/radarr:v0.2.0.1480-ls51)
|
||||||
|
|
||||||
|
## 0.3.2
|
||||||
|
|
||||||
|
- set snapshot_exclude for logs and MediaCover
|
||||||
|
|
||||||
|
## 0.3.0
|
||||||
|
|
||||||
|
- Update radarr to 0.2.0.1450 (linuxserver/radarr:v0.2.0.1450-ls46)
|
||||||
|
|
||||||
|
## 0.2.0
|
||||||
|
|
||||||
|
- Update radarr to 0.2.0.1358 (linuxserver/radarr:v0.2.0.1358-ls22)
|
||||||
21
radarr/Dockerfile
Normal file
21
radarr/Dockerfile
Normal 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/radarr|g" /etc/services.d/radarr/run \
|
||||||
|
&& sed -i "s|/config|/config/radarr|g" /etc/cont-init.d/30-config
|
||||||
|
|
||||||
|
# copy local files
|
||||||
|
COPY root/ /
|
||||||
27
radarr/README.md
Normal file
27
radarr/README.md
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# Hassio Add-ons by petersendev: Radarr
|
||||||
|
|
||||||
|
## About
|
||||||
|
|
||||||
|
[Radarr](https://github.com/Radarr/Radarr) - A fork of Sonarr to work with movies à la Couchpotato.
|
||||||
|
|
||||||
|
This addon is based on the [docker image](https://github.com/linuxserver/docker-radarr) 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>:7878`.
|
||||||
|
|
||||||
|
|
||||||
|
[repository]: https://github.com/petersendev/hassio-addons
|
||||||
14
radarr/build.json
Normal file
14
radarr/build.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"build_from_template": {
|
||||||
|
"image": "linuxserver/radarr",
|
||||||
|
"version": "v0.2.0.1504-ls68"
|
||||||
|
},
|
||||||
|
"build_from": {
|
||||||
|
"armhf": "linuxserver/radarr:arm32v7-v0.2.0.1504-ls68",
|
||||||
|
"armv7": "linuxserver/radarr:arm32v7-v0.2.0.1504-ls68",
|
||||||
|
"aarch64": "linuxserver/radarr:arm64v8-v0.2.0.1504-ls68",
|
||||||
|
"amd64": "linuxserver/radarr:amd64-v0.2.0.1504-ls68"
|
||||||
|
},
|
||||||
|
"squash": false,
|
||||||
|
"args": {}
|
||||||
|
}
|
||||||
47
radarr/config.json
Normal file
47
radarr/config.json
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"name": "radarr NAS",
|
||||||
|
"version": "0.6.1",
|
||||||
|
"slug": "radarr",
|
||||||
|
"legacy": false,
|
||||||
|
"maintenance": {
|
||||||
|
"github_release": "https://github.com/linuxserver/docker-radarr",
|
||||||
|
"version_regex": "v(\\d+\\.\\d+\\.\\d+\\.\\d+)-(ls\\d+)"
|
||||||
|
},
|
||||||
|
"description": "A fork of Sonarr to work with movies à la Couchpotato",
|
||||||
|
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/radarr#readme",
|
||||||
|
"startup": "services",
|
||||||
|
"arch": [
|
||||||
|
"aarch64",
|
||||||
|
"amd64",
|
||||||
|
"armv7",
|
||||||
|
"armhf"
|
||||||
|
],
|
||||||
|
"ports": {
|
||||||
|
"7878/tcp": 7878
|
||||||
|
},
|
||||||
|
"ports_description": {
|
||||||
|
"7878/tcp": "web interface"
|
||||||
|
},
|
||||||
|
"map": [
|
||||||
|
"config:rw",
|
||||||
|
"share:rw",
|
||||||
|
"media:rw",
|
||||||
|
"ssl"
|
||||||
|
],
|
||||||
|
"webui": "http://[HOST]:[PORT:7878]",
|
||||||
|
"boot": "auto",
|
||||||
|
"options": {
|
||||||
|
"PUID": 1001,
|
||||||
|
"PGID": 1001
|
||||||
|
},
|
||||||
|
"schema": {
|
||||||
|
"PUID": "int",
|
||||||
|
"PGID": "int",
|
||||||
|
"TZ": "str?"
|
||||||
|
},
|
||||||
|
"snapshot_exclude": [
|
||||||
|
"**/Backups/*",
|
||||||
|
"**/logs/*",
|
||||||
|
"**/MediaCover/*"
|
||||||
|
]
|
||||||
|
}
|
||||||
BIN
radarr/icon.png
Normal file
BIN
radarr/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
BIN
radarr/logo.png
Normal file
BIN
radarr/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
5
radarr/root/etc/cont-init.d/00-ha-env
Normal file
5
radarr/root/etc/cont-init.d/00-ha-env
Normal 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
|
||||||
19
radarr/root/etc/cont-init.d/20-folders
Normal file
19
radarr/root/etc/cont-init.d/20-folders
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
if [ ! -d /share/storage/movies ]; then
|
||||||
|
echo "Creating /share/storage/movies"
|
||||||
|
mkdir -p /share/storage/movies
|
||||||
|
chown -R abc:abc /share/storage/movies
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d /share/downloads ]; then
|
||||||
|
echo "Creating /share/downloads"
|
||||||
|
mkdir -p /share/downloads
|
||||||
|
chown -R abc:abc /share/downloads
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d /config/radarr ]; then
|
||||||
|
echo "Creating /config/radarr"
|
||||||
|
mkdir -p /config/radarr
|
||||||
|
chown -R abc:abc /config/radarr
|
||||||
|
fi
|
||||||
43
radarr/root/etc/cont-init.d/50-mounts
Normal file
43
radarr/root/etc/cont-init.d/50-mounts
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
#!/usr/bin/with-contenv bashio
|
||||||
|
bashio::log.info 'Mounting external hdd...'
|
||||||
|
|
||||||
|
# Mount local Share if configured and if Protection Mode is active
|
||||||
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
|
bashio::log.info "Local Disks mounting.. ${MOREDISKS}" && \
|
||||||
|
for disk in $MOREDISKS
|
||||||
|
do
|
||||||
|
bashio::log.info "Mount ${disk}"
|
||||||
|
mkdir -p /share/$disk && \
|
||||||
|
if [ ! -d /share/$disk ]; then
|
||||||
|
echo "Creating /share/$disk"
|
||||||
|
mkdir -p /share/$disk
|
||||||
|
chown -R abc:abc /share/$disk
|
||||||
|
fi
|
||||||
|
mount /dev/$disk /share/$disk && \
|
||||||
|
bashio::log.info "Success!"
|
||||||
|
done || \
|
||||||
|
bashio::log.warning "Protection mode is ON. Unable to mount local drives!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
|
if bashio::config.has_value 'networkdisks'; then
|
||||||
|
MOREDISKS=$(bashio::config 'networkdisks')
|
||||||
|
CIFS_USERNAME=$(bashio::config 'cifsusername')
|
||||||
|
CIFS_PASSWORD=$(bashio::config 'cifspassword')
|
||||||
|
bashio::log.info "Network Disks mounting.. ${MOREDISKS}" && \
|
||||||
|
for disk in $MOREDISKS
|
||||||
|
do
|
||||||
|
bashio::log.info "Mount ${disk}"
|
||||||
|
mkdir -p /share/storagecifs && \
|
||||||
|
if [ ! -d /storage/storagecifs ]; then
|
||||||
|
echo "Creating /storage/storagecifs"
|
||||||
|
mkdir -p /storage/storagecifs
|
||||||
|
chown -R abc:abc /storage/storagecifs
|
||||||
|
fi
|
||||||
|
|
||||||
|
mount -t cifs -o username=$CIFS_USERNAME,password=$CIFS_PASSWORD $disk /storage/storagecifs && \
|
||||||
|
bashio::log.info "Success!"
|
||||||
|
done || \
|
||||||
|
bashio::log.warning "Protection mode is ON. Unable to mount external drives!"
|
||||||
|
fi
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "Transmission with NAS",
|
"name": "Transmission NAS",
|
||||||
"version": "1.0",
|
"version": "1.0",
|
||||||
"slug": "transmission",
|
"slug": "transmission",
|
||||||
"description": "The torrent client for Hass.io with OpenVPN support",
|
"description": "The torrent client for Hass.io with OpenVPN support",
|
||||||
|
|||||||
Reference in New Issue
Block a user