From cae4ffcd92fbd9e0c4c95079d96cc4c72ab43378 Mon Sep 17 00:00:00 2001 From: kenshin-samourai Date: Fri, 24 Apr 2020 16:42:30 +0200 Subject: [PATCH] add advanced config options for debugging --- docker/my-dojo/conf/docker-whirlpool.conf.tpl | 13 +++++++++++++ docker/my-dojo/whirlpool/restart.sh | 8 ++++++++ 2 files changed, 21 insertions(+) diff --git a/docker/my-dojo/conf/docker-whirlpool.conf.tpl b/docker/my-dojo/conf/docker-whirlpool.conf.tpl index 763be16..2ec295a 100644 --- a/docker/my-dojo/conf/docker-whirlpool.conf.tpl +++ b/docker/my-dojo/conf/docker-whirlpool.conf.tpl @@ -5,3 +5,16 @@ # Install and run an instance of whirlpool-cli inside Docker # Value: on | off WHIRLPOOL_INSTALL=off + + +# +# EXPERT SETTINGS +# + +# Activate debug logs +# Value: on | off +WHIRLPOOL_DEBUG=off + +# Activate more debug logs +# Value: on | off +WHIRLPOOL_DEBUG_CLIENT=off diff --git a/docker/my-dojo/whirlpool/restart.sh b/docker/my-dojo/whirlpool/restart.sh index dd08d71..d5d114e 100644 --- a/docker/my-dojo/whirlpool/restart.sh +++ b/docker/my-dojo/whirlpool/restart.sh @@ -23,5 +23,13 @@ else whirlpool_options+=(--cli.dojo.url="http://172.30.1.3:80/v2/") fi +if [ "$WHIRLPOOL_DEBUG" == "on" ]; then + whirlpool_options+=(--debug) +fi + +if [ "$WHIRLPOOL_DEBUG_CLIENT" == "on" ]; then + whirlpool_options+=(--debug-client) +fi + cd /home/whirlpool/.whirlpool-cli java -jar /usr/local/whirlpool-cli/whirlpool-client-cli-run.jar "${whirlpool_options[@]}"