Compare commits
No commits in common. "4bc7e9b370067c21bf629b331e6241240cb90e8f" and "f9a2ff44f7e3bebc26be8344aeaeed80a11cd6b0" have entirely different histories.
4bc7e9b370
...
f9a2ff44f7
2 changed files with 6 additions and 6 deletions
|
@ -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`.
|
`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/)
|
`jellyfin` | Dockerised [jellyfin](https://jellyfin.org/)
|
||||||
`json2collectdmqtt` | Dockerised [json2collectdmqtt](https://github.com/sbrl/json2collectdmqtt) - `KEY=value` environment file should be mounted to `/srv/env`
|
`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` | Dockerised server for [minetest](https://github.com/minetest/minetest),, currently under construction
|
||||||
`minetest-mapserver`| Dockerised [minetest-mapserver](https://github.com/minetest-mapserver/mapserver)
|
`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.
|
`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.
|
||||||
|
|
|
@ -4,21 +4,21 @@ mode="$1";
|
||||||
shift;
|
shift;
|
||||||
|
|
||||||
echo ">>> Environment:";
|
echo ">>> Environment:";
|
||||||
echo "[wrapper] NOMAD_PORT_kiwix=$NOMAD_PORT_kiwix";
|
echo "[wrapper] NOMAD_PORT_KIWIX=$NOMAD_PORT_KIWIX";
|
||||||
echo "[wrapper] Mode: ${mode}";
|
echo "[wrapper] Mode: ${mode}";
|
||||||
echo "[wrapper] Args: $*";
|
echo "[wrapper] Args: $*";
|
||||||
|
|
||||||
echo ">>> Checking environment";
|
echo ">>> Checking environment";
|
||||||
if [[ -z "${NOMAD_PORT_kiwix}" ]]; then
|
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;
|
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;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ">>> Starting kiwix";
|
echo ">>> Starting kiwix";
|
||||||
case "${mode}" in
|
case "${mode}" in
|
||||||
serve )
|
serve )
|
||||||
echo ">>> 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;
|
/app/kiwix-serve --library --port "${NOMAD_PORT_KIWIX}" /srv/data;
|
||||||
;;
|
;;
|
||||||
* )
|
* )
|
||||||
echo ">>> kiwix-serve $*";
|
echo ">>> kiwix-serve $*";
|
||||||
|
|
Loading…
Reference in a new issue