Compare commits

...

2 Commits

Author SHA1 Message Date
Starbeamrainbowlabs 4bc7e9b370
README; kiwix fixup 2022-11-06 03:30:44 +00:00
Starbeamrainbowlabs 85a1a0fb70
kiwix: fixup 2022-11-06 03:30:23 +00:00
2 changed files with 6 additions and 6 deletions

View File

@ -65,7 +65,7 @@ Image | Purpose
`imap-download` | Fetchmail, procmail, inotifywait, and munpack working together to download emails and extract attachments. The provided fetchmailrc must be owned by `10000:10000`.
`jellyfin` | Dockerised [jellyfin](https://jellyfin.org/)
`json2collectdmqtt` | Dockerised [json2collectdmqtt](https://github.com/sbrl/json2collectdmqtt) - `KEY=value` environment file should be mounted to `/srv/env`
`kiwix` | Dockerised [kiwix-serve](https://kiwix.org/) - `NOMAD_PORT_KIWIX` should be the port to listen on
`kiwix` | Dockerised [kiwix-serve](https://kiwix.org/) - `NOMAD_PORT_kiwix` should be the port to listen on
`minetest` | Dockerised server for [minetest](https://github.com/minetest/minetest),, currently under construction
`minetest-mapserver`| Dockerised [minetest-mapserver](https://github.com/minetest-mapserver/mapserver)
`minideb` | Our main base image for (most) other images. Built from [minideb](https://github.com/bitnami/minideb), but customised to use our local apt-cacher-ng instance.

View File

@ -4,21 +4,21 @@ mode="$1";
shift;
echo ">>> Environment:";
echo "[wrapper] NOMAD_PORT_KIWIX=$NOMAD_PORT_KIWIX";
echo "[wrapper] NOMAD_PORT_kiwix=$NOMAD_PORT_kiwix";
echo "[wrapper] Mode: ${mode}";
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;
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;
exit 1;
fi
echo ">>> Starting kiwix";
case "${mode}" in
serve )
echo ">>> kiwix-serve --library --port ${NOMAD_PORT_KIWIX} /srv/data";
/app/kiwix-serve --library --port "${NOMAD_PORT_KIWIX}" /srv/data;
echo ">>> kiwix-serve --library --port ${NOMAD_PORT_kiwix} /srv/data";
/app/kiwix-serve --library --port "${NOMAD_PORT_kiwix}" /srv/data;
;;
* )
echo ">>> kiwix-serve $*";