Browse Source

add advanced config options for debugging

use-env-var-docker
kenshin-samourai 5 years ago
parent
commit
cae4ffcd92
  1. 13
      docker/my-dojo/conf/docker-whirlpool.conf.tpl
  2. 8
      docker/my-dojo/whirlpool/restart.sh

13
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

8
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[@]}"

Loading…
Cancel
Save