linz / gazetteer

New Zealand Gazetteer of official place names
http://www.linz.govt.nz/regulatory/place-names/find-name/new-zealand-gazetteer-official-geographic-names/new-zealand-gazetteer-search-place-names#zoom=0&lat=-41.14127&lon=172.5&layers=BTTT
Other
2 stars 2 forks source link

Containerisation of gazetteer database #31

Closed SPlanzer closed 4 years ago

SPlanzer commented 4 years ago

The database must be containerised. This will support continuous integration validation as it will allow for CI to run tests against the DB.

Definition of Done:

billgeo commented 4 years ago

Note: old version of postgres that gazetteer runs on may need to be built from source

strk commented 4 years ago

According to https://confluence.linz.govt.nz/display/MNAI/High+Level+Design the PostgreSQL database running in production is 8.4.

strk commented 4 years ago

A docker image to be used as base does exist for 8.4: https://hub.docker.com/_/postgres/?tab=tags&page=1&name=8.4

strk commented 4 years ago

Shall we split this repository from a separate repository containing only the database schema, like it was done with linz-bde-schema ? It would basically contain what's currently under src/sql ...

palmerj commented 4 years ago

I think we should leave this as a mono-repo. Spliting only makes sense if another system might use it, or the components are really large. This app is pretty small and self contained

strk commented 4 years ago

From the README file the db schema is used both by the QGIS plugin and by the Web app ? (not sure the information there is correct).

billgeo commented 4 years ago

I think splitting would ultimately be a good idea (there is a slim possibility the NZGB may be extending this in the future), but I feel we can leave it for now. Unless leaving the components in the same repo is going to cause problems for us with doing the tasks we want to do now? i.e. CI/CD integration and unit testing.

palmerj commented 4 years ago

Ideally the web app would be in with this stuff too, but that can't occur cause a 3rd party built that. But yeah good point. Allowing the developers of the web app to reference the database component by itself potentially makes it easier for their development. But this comes at the cost of additional source code and built management.

strk commented 4 years ago

Simon isn't this completed ? We do have the database containerized and linked to qgis..

SPlanzer commented 4 years ago

Yes, Thank you