mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-07-01 01:19:52 +02:00
21 lines
550 B
Text
21 lines
550 B
Text
|
#!/bin/sh
|
||
|
# Run the my_ocrd_workflow container on the current workspace
|
||
|
|
||
|
# The container currently needs to run privileged to allow it to read from e.g.
|
||
|
# /home on SELinux secured systems such as Fedora. We might want to use udica
|
||
|
# instead in the future.
|
||
|
|
||
|
DOCKER_IMAGE=mikegerber/my_ocrd_workflow:stable
|
||
|
|
||
|
if echo "$DOCKER_IMAGE" | grep -q "/"; then
|
||
|
docker pull "$DOCKER_IMAGE"
|
||
|
fi
|
||
|
|
||
|
docker run --privileged=true --rm -t \
|
||
|
\
|
||
|
--user `id -u`:`id -g` \
|
||
|
--mount type=bind,src="$(pwd)",target=/data \
|
||
|
\
|
||
|
-e LOG_LEVEL=$LOG_LEVEL \
|
||
|
$DOCKER_IMAGE
|