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 plugin and QGIS for testing #30

Closed SPlanzer closed 4 years ago

SPlanzer commented 4 years ago

The Plugin and QGIS should be containerised to allow tests to be executed against the plugin running against a instance of QGIS. This will support continuous integration validation.

Definition of Done

stale[bot] commented 4 years ago

This issue has been automatically marked as stale as there has not been any activity for sometime. The issue will be closed in 14 days if no further activity.

SPlanzer commented 4 years ago

A good example of what this is to implement can be seen in the nz-buildings project.

As does this app, the nz-buildings plugin also has a database and qgis components dockerised.

strk commented 4 years ago

The docker-compose part is up and running. We now need to document and provide scripts for installing the plugin in the containerized qgis. Info on how to start qgis dockerized are here: https://github.com/qgis/QGIS/tree/master/.docker

I can start a qgis instance like this:

docker run --rm -it --name qgis -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY qgis/qgis:release-3_4 qgis

But the plugin is not installed yet, and I'm still struggling with the qgis_setup.sh script, part of the dockerized qgis container (from official sources) which seems to be a bit fragile

strk commented 4 years ago

With merging #76 we have an easy way to start qgis with plugin preinstalled

strk commented 4 years ago

Suonds done (and duplicated?)