docker-images/images/kiwix/run.sh

13 lines
415 B
Bash
Raw Normal View History

2022-11-05 22:10:19 +00:00
#!/usr/bin/env bash
echo ">>> Environment:"
echo "[wrapper] NOMAD_PORT_KIWIX=$NOMAD_PORT_KIWIX"
echo "[wrapper] Args: $*"
echo ">>> Checking environment"
if [[ -z "${NOMAD_PORT_KIWIX}" ]]; then
echo "Error: The environment variable NOMAD_PORT_KIWIX is not set. It must be set to the port number to listen on." >&2;
fi
echo ">>> Starting kiwix";
/app/kiwix-serve --library --port "${NOMAD_PORT_KIWIX}" /srv/data;