From ac4b894f2c573b0e065afedae7305d120c2fa7d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Sch=C3=BCller?= Date: Thu, 22 Dec 2016 15:45:26 +0100 Subject: [PATCH] Fixes #1 --- README.md | 16 ++++++++++++++++ scripts/start_setup.sh | 3 +++ 2 files changed, 19 insertions(+) diff --git a/README.md b/README.md index 3c9fa58..8109273 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,22 @@ If you start the container and you already have a database but you want more dat docker exec geneweb /start_setup.sh ``` and then navigate to [http://localhost:2316](http://localhost:2316) + +## Options +If you need to change the IP of the Docker host or better, of the PC you want to use the [setup](http://localhost:2316) from +you can override the default value by _adding_ the option + +``` +--env HOST_IP=192.168.0.1 +``` + +to the `docker run` mentioned above. + +e.g. +``` +docker run --env HOST_IP=192.168.0.1 --env LANGUAGE=de -d --name geneweb -p2316:2316 -p2317:2317 -v ${HOME}/GenealogyData:/genewebData schuellerf/geneweb:latest +``` + ## Shutdown To shutdown the container just run diff --git a/scripts/start_setup.sh b/scripts/start_setup.sh index 8bc2b66..40ed641 100755 --- a/scripts/start_setup.sh +++ b/scripts/start_setup.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash pushd ${GENEWEBDB} + if [ -n "${HOST_IP}" ]; then + echo "${HOST_IP}" > /setup_ips.txt + fi gwsetup -p${SETUP_PORT} -gd${GENEWEBSHARE} -lang${LANGUAGE} -log${SETUP_LOGFILE} -only/setup_ips.txt popd