Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bernmic/ocrmypdf-watchdog
A watchdog for OCRMyPDF written in go
https://github.com/bernmic/ocrmypdf-watchdog
docker docker-compose go golang ocrmypdf
Last synced: 10 days ago
JSON representation
A watchdog for OCRMyPDF written in go
- Host: GitHub
- URL: https://github.com/bernmic/ocrmypdf-watchdog
- Owner: bernmic
- License: gpl-3.0
- Created: 2018-12-29T13:15:55.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T09:59:00.000Z (almost 3 years ago)
- Last Synced: 2024-08-02T15:48:10.547Z (4 months ago)
- Topics: docker, docker-compose, go, golang, ocrmypdf
- Language: Go
- Size: 24.4 KB
- Stars: 10
- Watchers: 4
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ocrmypdf-watchdog
This is a simple watchdog for OCRMyPDF (and maybe others). It watches a given folder for new files with definable extensions and runs then ocrmypdf (or another command) to convert files to pdf.
## Docker
The Dockerfile creates an image based on the jbarlow83/ocrmypdf image and adds the watchdog.
The docker-compose creates a container from the image. The first time it has to be started with the --build flag to build the image:
docker-compose up --build
There are 2 volumes: /in and /out
The docker-compose.yml shows how to use them.
## Environment
The watchdog looks for the following environment variables:
* OCRMYPDF_IN
* OCRMYPDF_OUT
* OCRMYPDF_BINARY
* OCRMYPDF_PARAMETER
* WATCHDOG_EXTENSIONS
* WATCHDOG_FREQUENCY## Parameters
The watchdog accepts the following parameters:
* --in
* --out
* --frequency## Multi architecture build
docker buildx build -t "${DOCKER_USER}/ocrmypdf-watchdog:latest" --platform linux/amd64,linux/arm64 --push .