tawhiri-container is a containised version of tawhiri.
- The latest version of this container is available from
ghcr.io/projecthorus/tawhiri-container:latest
. - Downloaded data sets must be placed in
/srv/tawhiri-datasets
. These can be downloaded using tawhiri-downloader-container, and it is recommend that/srv
is shared between these containers using a method such as a bind mount or volume. - A timezone must be passed to the container, either by setting the
TZ
environment variable, or by bind mounting/etc/localtime
in to the container from the host system. - Elevation data must be placed in a file named
/srv/ruaumoko-dataset
, and can be downloaded usingruaumoko-download
(including in the container).
To download the elevation data:
docker run --rm -i -t -e TZ=UTC -v /opt/tawhiri:/srv ghcr.io/projecthorus/tawhiri-container:latest ruaumoko-download -v
To run the API server with the default configuration of 12 threads, listening on port 8000
:
docker run --rm -i -t -e TZ=UTC -v /opt/tawhiri:/srv -p 8000:8000 ghcr.io/projecthorus/tawhiri-container:latest
To run the API server, with a custom number of threads, listening on a different port:
docker run --rm -i -t -e TZ=UTC -v /opt/tawhiri:/srv -p 8005:8005 ghcr.io/projecthorus/tawhiri-container:latest gunicorn -b 0.0.0.0:8005 -w 6 tawhiri.api:app