Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

Latest commit

 

History

History
30 lines (20 loc) · 1.49 KB

README.md

File metadata and controls

30 lines (20 loc) · 1.49 KB

tawhiri-container

tawhiri-container is a containised version of tawhiri.

Notes

  • 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 using ruaumoko-download (including in the container).

Examples

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