Docker image for XTide, a tide prediction program. Includes the tide CLI, xttpd web server, and tcd-utils (build_tide_db, restore_tide_db), compiled from source with harmonics data.
# Plain text predictions for a location
docker run --rm ghcr.io/openwatersio/xtide tide -l "San Francisco"
# Output a PNG graph
docker run --rm ghcr.io/openwatersio/xtide tide -l "San Francisco" -m g -f p > tides.pngSee tide -h for all options.
docker run --rm -p 8080:8080 ghcr.io/openwatersio/xtide xttpd 8080Then open http://localhost:8080 in your browser.
docker run --rm ghcr.io/openwatersio/xtide restore_tide_db -h
docker run --rm ghcr.io/openwatersio/xtide build_tide_db -hThe image includes the free harmonics dataset from flaterco.com. To use a custom .tcd harmonics file, mount it into the container and set the HFILE_PATH environment variable:
docker run --rm \
-v /path/to/your/harmonics.tcd:/data/harmonics.tcd \
-e HFILE_PATH=/data/harmonics.tcd \
ghcr.io/openwatersio/xtide tide -l "San Francisco"You can also combine multiple .tcd files by pointing HFILE_PATH at a directory containing them:
docker run --rm \
-v /path/to/harmonics-dir:/data/harmonics \
-e HFILE_PATH=/data/harmonics \
ghcr.io/openwatersio/xtide tide -l "San Francisco"Published to:
ghcr.io/openwatersio/xtidedocker.io/openwatersio/xtide
Multi-arch: linux/amd64 and linux/arm64.
docker buildx build --platform linux/amd64 -t xtide .