diff --git a/CloudronManifest.json b/CloudronManifest.json new file mode 100644 index 0000000..976cf54 --- /dev/null +++ b/CloudronManifest.json @@ -0,0 +1,19 @@ +{ + "id": "com.radarr.app", + "title": "Radarr", + "author": "Radarr", + "description": "Radarr is a movie collection manager for Usenet and BitTorrent users", + "tagline": "Movie organizer/manager for usenet and torrent users", + "version": "1.0.0", + "healthCheckPath": "/", + "httpPort": 7878, + "addons": { + "localstorage": {} + }, + "manifestVersion": 2, + "website": "https://radarr.video/", + "contactEmail": "support@radarr.video", + "icon": "file://icon.png", + "tags": [ "media", "movies", "torrent", "usenet" ], + "mediaLinks": [ "https://raw.githubusercontent.com/Radarr/Radarr/develop/Logo/256.png" ] + } diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7a892bc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM --platform=amd64 cloudron/base:4.2.0@sha256:46da2fffb36353ef714f97ae8e962bd2c212ca091108d768ba473078319a47f4 + +RUN apt-get update -y && \ + apt install -y curl sqlite3 dpkg wget + +RUN mkdir -p /app/code/radarr +WORKDIR /app/code + +RUN wget --content-disposition "http://radarr.servarr.com/v1/update/master/updatefile?os=linux&runtime=netcore&arch=x64" && \ + tar -xvzf Radarr*.linux*.tar.gz -C /app/code/radarr && \ + rm -f Radarr*.linux*.tar.gz + +COPY start.sh /app/code/ +RUN chmod +x /app/code/start.sh && \ + chown -R cloudron:cloudron /app/code/radarr + +CMD [ "/app/code/start.sh" ] diff --git a/README.md b/README.md index 45e9975..ca8bc08 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,56 @@ # cloudron-radarr -Movie organizer/manager for usenet and torrent users. Packaged for Cloudron \ No newline at end of file +Radarr is a movie collection manager for Usenet and BitTorrent users. Packaged for Cloudron. + +## Prerequisites + +You need to install Cloudron CLI: [here](https://docs.cloudron.io/packaging/cli/). +After you need to connect the CLI to your cloudron instance. + +## Building the Docker Image + +To build the Docker image: + +```bash +docker build -t yourusername/cloudron-radarr:1.0.0 . +``` + +## Installing on Cloudron + +To install the app on Cloudron, you need to be in this directory (so Cloudron CLI can read `CloudronManifest.json`): + +```bash +cloudron install --image yourusername/cloudron-radarr:1.0.0 +``` + +Or if you've pushed to a registry: + +```bash +cloudron install --image registry.example.com/yourusername/cloudron-radarr:1.0.0 +``` + +## Cloudron Volumes + +You will likely need to create volumes for: +- Download folder (for completed downloads) +- Movies library folder (for your movie collection) + +Here is the guide to create cloudron volumes: [guide](https://docs.cloudron.io/volumes/#add). + +**I recommend choosing "Filesystem" mount type when you create the volumes.** + +⚠️ **You need to physically create the folder on host before, cloudron can't create one for you.** + +To connect a volume to the app, go to the app's settings, then "storage" tab and "mount" options on the right panel. + +## Configuration + +Radarr will store its configuration in `/app/data/config/` which is automatically managed by Cloudron's localstorage addon. + +## Updating + +To update Radarr, rebuild the Docker image with a new version tag and update the app through Cloudron's interface or CLI. + +## License + +MIT License - see LICENSE file for details. \ No newline at end of file diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..e027a51 Binary files /dev/null and b/icon.png differ diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..1adb32e --- /dev/null +++ b/start.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +set -eu + +echo "Starting Radarr..." +exec /app/code/radarr/Radarr/Radarr -nobrowser -data=/app/data/config/