mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-06-09 14:49:53 +02:00
🔧 Allow setting LOG_LEVEL
This commit is contained in:
parent
d6c38b5b9f
commit
0b2b66a0b4
2 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
LOG_LEVEL='DEBUG'
|
LOG_LEVEL=${LOG_LEVEL:-DEBUG}
|
||||||
|
|
||||||
|
|
||||||
set -e # Abort on error
|
set -e # Abort on error
|
||||||
if [ "$LOG_LEVEL" = "DEBUG" -o "$LOG_LEVEL" = "TRACE" ]; then
|
if [ "$LOG_LEVEL" = "DEBUG" -o "$LOG_LEVEL" = "TRACE" ]; then
|
||||||
|
|
2
run
2
run
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# XXX Do not run privileged, use udica instead
|
# XXX Do not run privileged, use udica instead
|
||||||
docker run --gpus all -it --rm --mount type=bind,src="$(pwd)",target=/data --privileged=true my_ocrd_workflow
|
docker run --gpus all -it --rm --mount type=bind,src="$(pwd)",target=/data --privileged=true -e LOG_LEVEL=$LOG_LEVEL my_ocrd_workflow
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue