Skip to content

Seed locations table from bundled geometry file at database setup - #15

Open
nicklatham97 wants to merge 3 commits into
ToolDAQ:Applicationfrom
nicklatham97:feat/automatically_insert_geometry
Open

Seed locations table from bundled geometry file at database setup#15
nicklatham97 wants to merge 3 commits into
ToolDAQ:Applicationfrom
nicklatham97:feat/automatically_insert_geometry

Conversation

@nicklatham97

@nicklatham97 nicklatham97 commented Jul 16, 2026

Copy link
Copy Markdown

Automatically insert the Hyper-K geometry to the locations table on build.

Note this pairs with a WebServer MR which links up the geometry file:
https://git.hyperk.org/hyperk-online/web/WebServer/-/merge_requests/137

A fresh database previously started with an empty locations table,
requiring a manual upload-locations run from the WebServer repo before
the event display could load geometry. Bundle the HyperK geometry file
and seed the table during SetupDatabase.sh, with a warning fallback if
the file is absent.
Nick Latham added 2 commits July 17, 2026 12:55
Lets deployments seed the locations table from an external geometry
file (e.g. the WebServer repo's copy mounted into the container)
instead of the bundled resources copy.
The geometry file remains solely in the WebServer repository;
deployments mount it into the database container and set GEOFILE.
Remove the bundled copy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant