feat: Created the Lidarr mock and added a justfile
@@ -3,6 +3,7 @@ A demo repository with a basic HTPC configuration for demonstration and testing
|
|||||||
|
|
||||||
## One-Command Run
|
## One-Command Run
|
||||||
To clone the repo and run the demo all in one go, the following command will download the [managarr-demo](./managarr-demo.sh) script and run it:
|
To clone the repo and run the demo all in one go, the following command will download the [managarr-demo](./managarr-demo.sh) script and run it:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
curl https://raw.githubusercontent.com/Dark-Alex-17/managarr-demo/main/managarr-demo.sh > /tmp/managarr-demo.sh && bash /tmp/managarr-demo.sh
|
curl https://raw.githubusercontent.com/Dark-Alex-17/managarr-demo/main/managarr-demo.sh > /tmp/managarr-demo.sh && bash /tmp/managarr-demo.sh
|
||||||
```
|
```
|
||||||
@@ -20,10 +21,43 @@ This demo has no download functionality. It is an eventual goal to have a mock A
|
|||||||
to emulate this functionality for a full demo experience.
|
to emulate this functionality for a full demo experience.
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
To build and push both the [prowlarr](./prowlarr.Dockerfile) and [radarr](./radarr.Dockerfile) images, it is easiest to just use the [build script](./build.sh):
|
This repo uses [just](https://github.com/casey/just) to manage build tasks.
|
||||||
|
|
||||||
|
To build any individual mock Servarr docker image or even all of them, you can use the `build` recipes in the [justfile](./justfile):
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
./build.sh
|
$ just --list
|
||||||
|
Available recipes:
|
||||||
|
...
|
||||||
|
|
||||||
|
[build]
|
||||||
|
build-all # Build all mock container images
|
||||||
|
build-lidarr # Build the Lidarr mock image
|
||||||
|
build-prowlarr # Build the Prowlarr mock image
|
||||||
|
build-radarr # Build the Radarr mock image
|
||||||
|
build-sonarr # Build the Sonarr mock image
|
||||||
|
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
## Pushing
|
||||||
|
This repo uses [just](https://github.com/casey/just) to manage push tasks.
|
||||||
|
|
||||||
|
To push any individual mock Servarr docker image or even all of them, you can use the `push` recipes in the [justfile](./justfile):
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ just --list
|
||||||
|
Available recipes:
|
||||||
|
...
|
||||||
|
|
||||||
|
[push]
|
||||||
|
push-all # Push all mock container images
|
||||||
|
push-lidarr # Push the Lidarr mock image
|
||||||
|
push-prowlarr # Push the Prowlarr mock image
|
||||||
|
push-radarr # Push the Radarr mock image
|
||||||
|
push-sonarr # Push the Sonarr mock image
|
||||||
|
|
||||||
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
## Running directly with docker compose
|
## Running directly with docker compose
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
docker build -f radarr.Dockerfile -t darkalex17/radarr-mock:latest .
|
|
||||||
docker push darkalex17/radarr-mock:latest
|
|
||||||
|
|
||||||
docker build -f sonarr.Dockerfile -t darkalex17/sonarr-mock:latest .
|
|
||||||
docker push darkalex17/sonarr-mock:latest
|
|
||||||
|
|
||||||
docker build -f prowlarr.Dockerfile -t darkalex17/prowlarr-mock:latest .
|
|
||||||
docker push darkalex17/prowlarr-mock:latest
|
|
||||||
@@ -10,6 +10,11 @@ services:
|
|||||||
container_name: sonarr-mock
|
container_name: sonarr-mock
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
lidarr:
|
||||||
|
image: darkalex17/lidarr-mock:latest
|
||||||
|
container_name: lidarr-mock
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
prowlarr:
|
prowlarr:
|
||||||
image: darkalex17/prowlarr-mock:latest
|
image: darkalex17/prowlarr-mock:latest
|
||||||
container_name: prowlarr-mock
|
container_name: prowlarr-mock
|
||||||
@@ -26,5 +31,7 @@ services:
|
|||||||
condition: service_started
|
condition: service_started
|
||||||
sonarr:
|
sonarr:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
|
lidarr:
|
||||||
|
condition: service_started
|
||||||
prowlarr:
|
prowlarr:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
|
|||||||
@@ -0,0 +1,59 @@
|
|||||||
|
VERSION := "latest"
|
||||||
|
REPO := "darkalex17"
|
||||||
|
|
||||||
|
# List all recipes
|
||||||
|
default:
|
||||||
|
@just --list
|
||||||
|
|
||||||
|
# Build the Radarr mock image
|
||||||
|
[group: 'build']
|
||||||
|
@build-radarr:
|
||||||
|
docker build -f radarr.Dockerfile -t {{REPO}}/radarr-mock:{{VERSION}} .
|
||||||
|
|
||||||
|
# Build the Sonarr mock image
|
||||||
|
[group: 'build']
|
||||||
|
@build-sonarr:
|
||||||
|
docker build -f sonarr.Dockerfile -t {{REPO}}/sonarr-mock:{{VERSION}} .
|
||||||
|
|
||||||
|
# Build the Lidarr mock image
|
||||||
|
[group: 'build']
|
||||||
|
@build-lidarr:
|
||||||
|
docker build -f lidarr.Dockerfile -t {{REPO}}/lidarr-mock:{{VERSION}} .
|
||||||
|
|
||||||
|
# Build the Prowlarr mock image
|
||||||
|
[group: 'build']
|
||||||
|
@build-prowlarr:
|
||||||
|
docker build -f prowlarr.Dockerfile -t {{REPO}}/prowlarr-mock:{{VERSION}} .
|
||||||
|
|
||||||
|
# Build all mock container images
|
||||||
|
[group: 'build']
|
||||||
|
@build-all: build-radarr build-sonarr build-lidarr build-prowlarr
|
||||||
|
|
||||||
|
# Push the Radarr mock image
|
||||||
|
[group: 'push']
|
||||||
|
@push-radarr: build-radarr
|
||||||
|
docker push {{REPO}}/radarr-mock:{{VERSION}}
|
||||||
|
|
||||||
|
# Push the Sonarr mock image
|
||||||
|
[group: 'push']
|
||||||
|
@push-sonarr: build-sonarr
|
||||||
|
docker push {{REPO}}/sonarr-mock:{{VERSION}}
|
||||||
|
|
||||||
|
# Push the Lidarr mock image
|
||||||
|
[group: 'push']
|
||||||
|
@push-lidarr: build-lidarr
|
||||||
|
docker push {{REPO}}/lidarr-mock:{{VERSION}}
|
||||||
|
|
||||||
|
# Push the Prowlarr mock image
|
||||||
|
[group: 'push']
|
||||||
|
@push-prowlarr: build-prowlarr
|
||||||
|
docker push-t {{REPO}}/prowlarr-mock:{{VERSION}}
|
||||||
|
|
||||||
|
# Push all mock container images
|
||||||
|
[group: 'push']
|
||||||
|
@push-all: push-radarr push-sonarr push-lidarr push-prowlarr
|
||||||
|
|
||||||
|
# Run the demo
|
||||||
|
[group: 'run']
|
||||||
|
@run-demo:
|
||||||
|
docker compose run --rm managarr
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
FROM lscr.io/linuxserver/lidarr:latest
|
||||||
|
|
||||||
|
ENV PUID=1000
|
||||||
|
ENV PGID=1000
|
||||||
|
ENV TZ=Etc/UTC
|
||||||
|
|
||||||
|
COPY ./mock-htpc/lidarr/ /config
|
||||||
|
COPY ./mock-htpc/music /music
|
||||||
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 283 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 128 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 182 KiB |
|
After Width: | Height: | Size: 5.3 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 242 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 94 KiB |
|
After Width: | Height: | Size: 601 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 530 KiB |
|
After Width: | Height: | Size: 498 KiB |
|
After Width: | Height: | Size: 483 KiB |
|
After Width: | Height: | Size: 450 KiB |
|
After Width: | Height: | Size: 525 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 411 KiB |
|
After Width: | Height: | Size: 452 KiB |
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 135 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 450 KiB |
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 437 KiB |
|
After Width: | Height: | Size: 167 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 236 KiB |
|
After Width: | Height: | Size: 327 KiB |
|
After Width: | Height: | Size: 77 KiB |
|
After Width: | Height: | Size: 243 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 123 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 395 KiB |
|
After Width: | Height: | Size: 268 KiB |
|
After Width: | Height: | Size: 327 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 352 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 130 KiB |
|
After Width: | Height: | Size: 557 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 247 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 254 KiB |
|
After Width: | Height: | Size: 260 KiB |
|
After Width: | Height: | Size: 465 KiB |
|
After Width: | Height: | Size: 591 KiB |
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 104 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 718 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 282 KiB |
|
After Width: | Height: | Size: 401 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 101 KiB |
|
After Width: | Height: | Size: 286 KiB |
|
After Width: | Height: | Size: 337 KiB |
|
After Width: | Height: | Size: 521 KiB |
|
After Width: | Height: | Size: 718 KiB |
|
After Width: | Height: | Size: 122 KiB |
|
After Width: | Height: | Size: 429 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 188 KiB |
|
After Width: | Height: | Size: 638 KiB |
|
After Width: | Height: | Size: 246 KiB |
|
After Width: | Height: | Size: 174 KiB |
|
After Width: | Height: | Size: 477 KiB |
|
After Width: | Height: | Size: 570 KiB |
|
After Width: | Height: | Size: 422 KiB |
|
After Width: | Height: | Size: 432 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 206 KiB |
|
After Width: | Height: | Size: 58 KiB |