Browse Source

App Submission: Readarr (#712)

Co-authored-by: nmfretz <nmfretz@gmail.com>
main
Teddy Hoff 10 months ago
committed by GitHub
parent
commit
8e5868bb6f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 0
      readarr/data/config/.gitkeep
  2. 32
      readarr/docker-compose.yml
  3. 24
      readarr/hooks/post-install
  4. 27
      readarr/umbrel-app.yml

0
readarr/data/config/.gitkeep

32
readarr/docker-compose.yml

@ -0,0 +1,32 @@
version: "3.7"
services:
app_proxy:
environment:
APP_HOST: readarr_server_1
APP_PORT: 8787
PROXY_AUTH_WHITELIST: "/api/*"
server:
image: linuxserver/readarr:0.3.16-nightly@sha256:e0393656789fd839d05a6719b079984740652c050e2fc19083e5111e7905850c
environment:
- PUID=1000
- PGID=1000
volumes:
- ${APP_DATA_DIR}/data/config:/config
- ${UMBREL_ROOT}/data/storage/downloads:/downloads
restart: on-failure
mac:
image: getumbrel/media-app-configurator:v1.2.0@sha256:6aa568b53f6743dc4a7b3212f97b9d4ca78800ede5eadc0e4b80c7f3af50eda3
user: "1000:1000"
restart: on-failure
volumes:
- ${APP_DATA_DIR}/data/config:/config
- ${UMBREL_ROOT}/data/storage/downloads:/downloads
environment:
APP_ID: "readarr"
APP_URL: "http://readarr_server_1:8787"
TRANSMISSION_HOST: "transmission_server_1"
TRANSMISSION_PORT: 9091
ROOT_FOLDER: "/downloads/books"

24
readarr/hooks/post-install

@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -euo pipefail
if "${UMBREL_ROOT}/scripts/app" ls-installed | grep --quiet 'prowlarr'
then
CONFIG_FILE="${APP_DATA_DIR}/data/config/config.xml"
# Wait for the config.xml file to exist
# Wait for the API key property (<ApiKey>) to exist in the config file
for attempt in $(seq 1 20); do
if [[ -f "${CONFIG_FILE}" ]] && cat "${CONFIG_FILE}" | grep --quiet '<ApiKey>'; then
echo "config.xml file exists and <ApiKey> xml key exists..."
# Restart Prowlarr to automatically set this up as an app
"${UMBREL_ROOT}/scripts/app" restart prowlarr
exit
fi
sleep 1
done
>&2 echo "Error: Failed to locate <ApiKey> inside: ${CONFIG_FILE}"
exit 1
fi

27
readarr/umbrel-app.yml

@ -0,0 +1,27 @@
manifestVersion: 1.1
id: readarr
category: media
name: Readarr
version: "0.3.16"
tagline: Your book collection manager
description: >-
Readarr is an ebook and audiobook collection manager for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new books from your favorite authors and will grab, sort, and rename them. Note that only one type of a given book is supported. If you want both an audiobook and ebook of a given book you will need multiple instances.
developer: Readarr
website: https://readarr.com/
dependencies:
- transmission
repo: https://github.com/Readarr/Readarr
support: https://github.com/Readarr/Readarr/issues
port: 8787
gallery:
- 1.jpg
- 2.jpg
- 3.jpg
path: ""
defaultUsername: ""
defaultPassword: ""
torOnly: false
permissions:
- STORAGE_DOWNLOADS
submitter: Choff3
submission: https://github.com/getumbrel/umbrel-apps/pull/712
Loading…
Cancel
Save