diff --git a/doc/install.md b/doc/install.md index 24aec1b8..a3018902 100644 --- a/doc/install.md +++ b/doc/install.md @@ -34,6 +34,8 @@ Per default, runs with `n-1` cores, alternatively, specify the number of cores t docker run -it --name fishnet -e KEY=abcdef -e CORES=n niklasf/fishnet:2 ``` +For the full list of configurable environment variables, see [docker-entrypoint.sh](/docker-entrypoint.sh). + To update, since we named the image `fishnet`: ```sh diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index ae679f1c..81a56c00 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,6 +1,13 @@ #!/bin/bash -e -args=("--no-conf" "--no-stats-file") +args=("--no-conf") + +if [ -n "$STATS_FILE" ]; then + # $STATS_FILE implies $ENABLE_STATS + args+=("--stats-file" "$STATS_FILE") +elif [ -z "$ENABLE_STATS" ]; then + args+=("--no-stats-file") +fi if [ -n "$KEY" ]; then args+=("--key" "$KEY"); fi if [ -n "$KEY_FILE" ]; then args+=("--key-file" "$KEY_FILE"); fi