Added Quadlet instructions

Jeff Sandberg
2024-02-11 19:26:26 -07:00
parent e957525ba0
commit 6b4f9ff68c

@@ -55,6 +55,33 @@ docker run -d \
-v /PATH_TO_YOUR_DATA_DIR:/app/data \
ghcr.io/dmunozv04/isponsorblocktv
```
### Option 3: Quadlet
Before setting up the container, you will need to generate configs. Follow the instructions in the earlier docker steps, optionally replacing `docker` with podman. Place the generated configs in `/etc/containers/config/isponsorblocktv/`
You can set up a quadlet service using the following config:
```systemd
[Unit]
Description="Sponsorblock for networked youtube clients"
Wants=network-online.target
After=network-online.target
[Install]
WantedBy=multi-user.target default.target
[Service]
Restart=always
TimeoutStartSec=900
[Container]
Image=ghcr.io/dmunozv04/isponsorblocktv:latest
Volume=/etc/containers/config/isponsorblocktv:/app/data
```
Place that in a file at `/etc/containers/systemd/isponsorblocktv.container`, run `systemctl daemon-reload`, and you should now have a systemd service titled `isponsorblocktv` that you can start, stop, and enable/disable the same as any other systemd service.
# From source
## Install
You need to install [python](https://www.python.org/downloads/) version 3.8 or higher first, and to make it available in your PATH. After, clone the repo.