[Qgis-user] recommended QGIS Container-image for PyQGIS in standalone scripts

Marco Lechner mlechner at bfs.de
Wed Aug 14 02:39:20 PDT 2024


Dear Ujaval,

thanks for your reply, but I was asking for an existing Container-image that easily can be used on a docker host. I am aware of different installation options to run PyQGIS standalone on a standard- or virtual-machine (well, with your recommendation I could create my own Container-image using conda for QGIS installation instead of the official QGIS Docker image).

Regards
Marco

Von: Ujaval Gandhi <ujaval at spatialthoughts.com>
Gesendet: Mittwoch, 14. August 2024 11:22
An: Marco Lechner <mlechner at bfs.de>
Cc: qgis-user at lists.osgeo.org
Betreff: Re: [Qgis-user] recommended QGIS Container-image for PyQGIS in standalone scripts

You can install qgis via conda which gives a functioning environment where you can run pyqgis standalone without any additional setup https://aneto.pt/posts/tutorials/2019-05-29-using-qgis-from-conda/<https://mailtrack.io/l/0cf27eaaf5a65a913ff736c23e92f10bb2a858d1?w=bWxlY2huZXJAYmZzLmRl&url=https%3A%2F%2Faneto.pt%2Fposts%2Ftutorials%2F2019-05-29-using-qgis-from-conda%2F&u=8747767&signature=012874e84d2ab1f8>

You can also set appropriate environment variables on your standard QGIS install and run QGIS in a headless mode. Setup instructions for Windows and Mac are at https://courses.spatialthoughts.com/pyqgis-masterclass.html#writing-standalone-python-scripts<https://mailtrack.io/l/51d2157c10ae6d8b81038af01a94155871ac1276?w=bWxlY2huZXJAYmZzLmRl&url=https%3A%2F%2Fcourses.spatialthoughts.com%2Fpyqgis-masterclass.html%23writing-standalone-python-scripts&u=8747767&signature=464afe13f5ed03f3>
---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com<https://mailtrack.io/l/87d0691d71748c20d7fee82bca4ad8a10405e8c8?w=bWxlY2huZXJAYmZzLmRl&url=http%3A%2F%2Fwww.spatialthoughts.com&u=8747767&signature=2c031c7e8843dd91>



[https://mailtrack.io/trace/mail/w/bWxlY2huZXJAYmZzLmRl/281cdd6101f5cb209065bd59ec1c61068a9e2af4.png?u=8747767]
On Wed, Aug 14, 2024 at 2:05 PM Marco Lechner via QGIS-User <qgis-user at lists.osgeo.org<mailto:qgis-user at lists.osgeo.org>> wrote:
Hallo,

is there any Container-image that is recommended, if I want to run a PyQGIS standalone script like described in the PyQGIS Developer Cookbook [1] in a container?
The code I want to run does not need any additional python-libs and no GUI-QGIS. I wonder if there is such a thing like “headless-QGIS” in an Image? The official image on Dockerhub [2] seems to be very large for that. Or is that the way to go?

Regards
Marco

[1] https://docs.qgis.org/3.34/en/docs/pyqgis_developer_cookbook/intro.html#using-pyqgis-in-standalone-scripts
[2] https://hub.docker.com/r/qgis/qgis/tags

i.A. Dr. Marco Lechner
Leiter Fachgebiet RN 1 │ Head section RN 1

--
Bundesamt für Strahlenschutz │ Federal Office for Radiation Protection
Koordination Notfallschutzsysteme │ Coordination of Emergency Response Systems │ RN 1
Rosastr. 9
D-79098 Freiburg

Tel.: +49 30 18333-6724
E-Mail: mlechner at bfs.de<mailto:mlechner at bfs.de>
#gernperDu | #CallMeByMyFirstName
www.bfs.de<http://www.bfs.de/>
🌐 Besuchen<https://www.bfs.de/> Sie unsere Website, folgen Sie uns auf Mastodon<http://social.bund.de/@strahlenschutz> und abonnieren<https://www.bfs.de/strahlenschutzaktuell> Sie unseren 📢 Newsletter.
🔒 Informationen zum Datenschutz<https://www.bfs.de/datenschutz> gemäß Artikel 13 DSGVO
💚 E-Mail drucken? Lieber die Umwelt schonen!


_______________________________________________
QGIS-User mailing list
QGIS-User at lists.osgeo.org<mailto:QGIS-User at lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240814/3422e285/attachment.htm>


More information about the QGIS-User mailing list