🔧 Allow setting LOG_LEVEL

pull/27/head
Gerber, Mike 5 years ago
parent d6c38b5b9f
commit 0b2b66a0b4

@ -1,6 +1,5 @@
#!/bin/bash
LOG_LEVEL='DEBUG'
LOG_LEVEL=${LOG_LEVEL:-DEBUG}
set -e # Abort on error
if [ "$LOG_LEVEL" = "DEBUG" -o "$LOG_LEVEL" = "TRACE" ]; then

2
run

@ -1,3 +1,3 @@
#!/bin/sh
# 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…
Cancel
Save