Add Fedora local Stirling PDF setup
This commit is contained in:
23
update.sh
Executable file
23
update.sh
Executable 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."
|
||||
Reference in New Issue
Block a user