Add Fedora local Stirling PDF setup

This commit is contained in:
jan
2026-04-28 15:57:36 +02:00
commit 2a44f9fbc7
5 changed files with 216 additions and 0 deletions

23
update.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -euo pipefail
CONTAINER_NAME="stirling-pdf"
BASE_DIR="$HOME/.local/share/stirling-pdf"
podman stop "$CONTAINER_NAME" >/dev/null 2>&1 || true
podman rm "$CONTAINER_NAME" >/dev/null 2>&1 || true
podman pull docker.io/stirlingtools/stirling-pdf:latest
podman run -d \
--name "$CONTAINER_NAME" \
-p 127.0.0.1:8080:8080 \
-v "$BASE_DIR/configs:/configs:Z" \
-v "$BASE_DIR/logs:/logs:Z" \
-v "$BASE_DIR/pipeline:/pipeline:Z" \
-v "$BASE_DIR/tessdata:/usr/share/tessdata:Z" \
-e SECURITY_ENABLELOGIN=false \
docker.io/stirlingtools/stirling-pdf:latest
podman stop "$CONTAINER_NAME" >/dev/null 2>&1 || true
echo "Update complete."