Tools for *arr applications
Go to file
CSRBot 9f3f707457
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is passing
Update module github.com/stretchr/testify to v1.10.0
2024-11-23 14:33:04 +00:00
cmd Initial Commit 2024-08-20 18:15:43 +02:00
pkg Initial Commit 2024-08-20 18:15:43 +02:00
.dockerignore Initial Commit 2024-08-20 18:15:43 +02:00
.drone.yml Update quay.io/skopeo/stable Docker tag to v1.17.0 2024-11-21 17:34:37 +00:00
.gitignore Initial Commit 2024-08-20 18:15:43 +02:00
.markdownlint.yaml Initial Commit 2024-08-20 18:15:43 +02:00
Dockerfile Update docker.io/library/golang Docker tag to v1.23.3 2024-11-07 08:29:09 +00:00
go.mod Update module github.com/stretchr/testify to v1.10.0 2024-11-23 14:33:04 +00:00
go.sum Update module github.com/stretchr/testify to v1.10.0 2024-11-23 14:33:04 +00:00
LICENSE Initial Commit 2024-08-20 18:15:43 +02:00
manifest.tmpl Initial Commit 2024-08-20 18:15:43 +02:00
README.md Initial Commit 2024-08-20 18:15:43 +02:00
renovate.json Initial Commit 2024-08-20 18:15:43 +02:00

tarr

Build Status Docker Pulls

The tarr project contains small binaries / tools for interacting with *arr applications. The tools are helpful in a kubernetes environment to retrofit missing functions of the *arr applications.

Note

Instead of compiling the tarr applications by yourself, use the tarr container image instead. More described below.

autharr

The binary autharr is a small program to extract from a config.xml or config.yaml the API token. The token is written to the standard output. Alternatively, it can also be written to a file.

With regard to exportarr, it can be helpful in the Kubernetes environment to extract the token and use it for other API queries. For example for healthchecks. It therefore solve the following problem.

$ autharr /etc/bazarr/config.yaml
do7IuHiewooFaiyu
$ autharr /etc/lidarr/config.xml
aeteipei4Meing5i

Alternatively, the --watch flag can be set. This monitors the config file and writes the API token to the defined output in the event of changes.

$ autharr --watch /etc/bazarr/config.yaml
baGohkie9EL5Tahr
oov1liQuaiki1lar
vaeGa9Cheeheev2I

Pipe the output direct into a file. Exit the program by Ctrl+C.

$ autharr --watch /etc/bazarr/config.yaml /tmp/bazarr/token
^C
$

healarr

The binary healarr is a small program to check if the *arr application is healthy. Some *arr applications does not have implemented a dedicated REST endpoint for healthchecks or like the liveness or readiness probe. Instead will be called the API for a status, which returns 200 if the *arr instance is healthy.

healarr uses the internal packages from autharr to extract the API token from a config file. Alternatively can directly passed the API token as flag.

$ if healarr bazarr https://bazarr.example.com --config /etc/bazarr/config.xml; then
>   echo "Healthy"
> else
>   echo "Unhealthy"
> fi
Healthy

container-image

The container image docker.io/volkerraschek/tarr contains all tarr applications. The command below is an example to start autharr of the container image volkerraschek/tarr via docker. autharr is watching for changes of the API token. Any change will be written to the standard output.

Note

Adapt the volume mount, if you want to write the token to file on the host system.

$ docker run \
  --rm \
  --volume /etc/bazarr:/etc/bazarr:ro \
    docker.io/volkerraschek/tarr:latest \
      autharr --watch /etc/bazarr/config.yaml