From 5879f305822c8a56dd77af77e2cd92f4c8c568e3 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 21 Feb 2024 09:06:02 -0800 Subject: [PATCH] Add stirling-pdf initial working container. --- env-stirling-pdf | 4 ++++ stirling-pdf.sh | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 env-stirling-pdf create mode 100755 stirling-pdf.sh diff --git a/env-stirling-pdf b/env-stirling-pdf new file mode 100644 index 0000000..6e5cc85 --- /dev/null +++ b/env-stirling-pdf @@ -0,0 +1,4 @@ +DOCKER_ENABLE_SECURITY=true +SECURITY_ENABLE_LOGIN=true +SECURITY_INITIALLOGIN_USERNAME=eliribble +SECURITY_INITIALLOGIN_PASSWORD=secret diff --git a/stirling-pdf.sh b/stirling-pdf.sh new file mode 100755 index 0000000..3c03349 --- /dev/null +++ b/stirling-pdf.sh @@ -0,0 +1,12 @@ +#!/bin/bash +podman run -d \ + --env-file=/opt/podman/env-stirling-pdf \ + -p 10240:8080 \ + -v /mnt/slab1/stirling-pdf/training-data:/usr/share/tessdata \ + -v /mnt/slab1/stirling-pdf/configs:/configs \ + -v /var/log/stirling-pdf:/logs \ + --name stirling-pdf \ + docker.io/frooodle/s-pdf:latest + +# Can also add these for customisation but are not required +# -v /location/of/customFiles:/customFiles \