mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-06-09 14:49:53 +02:00
✨ Support running a stable version from Docker Hub
This commit is contained in:
parent
6537e8284e
commit
0d61c258a6
2 changed files with 27 additions and 1 deletions
8
run
8
run
|
@ -5,10 +5,16 @@
|
|||
# /home on SELinux secured systems such as Fedora. We might want to use udica
|
||||
# instead in the future.
|
||||
|
||||
DOCKER_IMAGE=my_ocrd_workflow:latest # locally built
|
||||
|
||||
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 \
|
||||
my_ocrd_workflow
|
||||
$DOCKER_IMAGE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue