Add Sonarr Cloudron app package

- Add CloudronManifest.json with app configuration
- Add Dockerfile for building Sonarr v4 image
- Add start.sh script to launch Sonarr
- Add icon.png for app icon
- Update README.md with installation and usage instructions
This commit is contained in:
2026-01-02 06:49:51 +00:00
parent b64fb4dc8c
commit e0cb4c2383
5 changed files with 109 additions and 1 deletions

20
CloudronManifest.json Normal file
View File

@@ -0,0 +1,20 @@
{
"id": "io.cloudron.sonarr",
"title": "Sonarr",
"author": "bradinfluence",
"description": "Sonarr 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.",
"tagline": "Smart PVR for newsgroup and bittorrent users",
"version": "1.0.0",
"healthCheckPath": "/",
"httpPort": 8989,
"addons": {
"localstorage": {}
},
"manifestVersion": 2,
"website": "https://sonarr.tv",
"contactEmail": "support@cloudron.io",
"icon": "file://icon.png",
"tags": [ "media", "tv", "pvr", "torrent", "usenet" ],
"mediaLinks": [ "https://sonarr.tv/img/logo.png" ]
}

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM --platform=amd64 cloudron/base:4.2.0@sha256:46da2fffb36353ef714f97ae8e962bd2c212ca091108d768ba473078319a47f4
RUN apt-get update -y && \
apt-get install -y curl sqlite3 dpkg wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /app/code/sonarr
WORKDIR /app/code
RUN wget --content-disposition "https://services.sonarr.tv/v1/download/master/latest?version=4&os=linux&arch=x64" -O Sonarr.tar.gz && \
tar -xvzf Sonarr.tar.gz -C /app/code/sonarr && \
rm Sonarr.tar.gz
COPY start.sh /app/code/
RUN chmod +x /app/code/start.sh && \
chown -R cloudron:cloudron /app/code/sonarr
CMD [ "/app/code/start.sh" ]

View File

@@ -1,3 +1,64 @@
# cloudron-sonarr
Smart PVR for newsgroup and bittorrent users. Packaged for Cloudron.
## Description
Sonarr 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.
## Installation
### 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.
### Install app
To install this app, you need to be in the app's folder, then:
```bash
cloudron install --image [DOCKER IMAGE NAME]
```
You need to be in the folder of the app before running the command because cloudron CLI needs to read `CloudronManifest.json` file.
### Building the Docker Image
To build the Docker image:
```bash
docker build -t your-dockerhub-username/cloudron-sonarr:1.0.0 .
```
Then push to Docker Hub:
```bash
docker push your-dockerhub-username/cloudron-sonarr:1.0.0
```
### Cloudron Volumes
You may want to create volumes for:
- Download folder (for completed downloads)
- Media library (for your TV shows)
Here is the guide to create cloudron volume: [guide](https://docs.cloudron.io/volumes/#add).
**I recommend to choose "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 app's settings, then "storage" tab and "mount" options on right panel.
## Configuration
Sonarr will store its configuration in `/app/data/config/` which is automatically managed by Cloudron's localstorage addon.
## Access
After installation, Sonarr will be available at the URL provided by Cloudron. The default port is 8989.
## License
MIT License - see LICENSE file for details.

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

7
start.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
set -eu
echo "Starting Sonarr..."
exec /app/code/sonarr/Sonarr/Sonarr -nobrowser -data=/app/data/config/