[PyWPS-dev] pywps in production on windows

Idan Miara idan at miara.com
Fri Jul 3 00:58:14 PDT 2020


Hi Carsten, Luí­s and all,

Thanks for your replies!

Currently I use pywps with Docker based on gdal's official docker image
(which is ubuntu based).
https://github.com/talos-gis/talos_wps
The service is still under testing but so far it looks very promising.

I need to deploy it also on Windows because I need to use a customer's C
DLL which is Windows only, so either I will need to port the DLL to Linux
or find a way to run pywps on Windows in production.

Luí­s wrote to me that from what he read online, all Python classes dealing
with the Multiprocess must be modified to run on Windows, that is for
running it in an asynchronous mode.

I understand that this is not the normal setup, so I guess I will need to
test how suitable this demo.py
<https://github.com/bird-house/birdhouse-workshop/blob/master/demo/demo.py> is
for production on Windows, or look for some other solution.

Kind regards,
Idan


On Fri, 3 Jul 2020 at 10:32, Carsten Ehbrecht <ehbrecht at dkrz.de> wrote:

> Hi Idan,
>
> PyWPS is not meant to run in production on Windows. It may still work …
> but I’m not sure.
>
> Using a docker container might already be a good alternative.
>
> There is a Flask demo with PyWPS … but outdated:
> https://github.com/geopython/pywps-flask
>
> Usually I use a cookiecutter template to setup a new PyWPS service which
> includes docker container support:
> https://github.com/bird-house/cookiecutter-birdhouse
>
> For a full deployment on Linux with nginx/gunicron I use an Ansible
> playbook:
> https://github.com/bird-house/ansible-wps-playbook
>
> Currently in our projects people are mostly using the PyWPS generated by
> the cookiecutter … using Werkzeug/WSGI included in PyWPS either on the
> Linux host or in a container (for production).
>
> Cheers,
> Carsten
> --
> Carsten Ehbrecht
> Abteilung Datenmanagement
>
> Deutsches Klimarechenzentrum GmbH (DKRZ)
> Bundesstraße 45 a • D-20146 Hamburg • Germany
>
> Phone: +49 40 460094-148
> FAX:   +49 40 460094-270
> Email: ehbrecht at dkrz.de
> URL:   www.dkrz.de
>
> Geschäftsführer: Prof. Dr. Thomas Ludwig
> Sitz der Gesellschaft: Hamburg
> Amtsgericht Hamburg HRB 39784
>
> > On 1. Jul 2020, at 21:10, Idan Miara <idan at miara.com> wrote:
> >
> > Hi all,
> >
> > I have a working pywps service that is deployed successfully with a
> Linux docker using gunicorn.
> > I need some pointers for running it in a production environment on
> Windows.
> >
> > As gunicorn is Linux only I need to find an alternative.
> > I can run it on Windows with the birdhouse-workshop demo script:
> >
> https://github.com/bird-house/birdhouse-workshop/blob/master/demo/demo.py
> > But the demo says: "Do not use this service in a production
> environment." so I'm looking for a better solution.
> > I have found also this rather complicated guide:
> >
> https://stackoverflow.com/questions/5072166/how-do-i-deploy-a-flask-application-in-iis
> >
> > Any suggestions?
> >
> > Kind regards,
> > Idan
> > _______________________________________________
> > pywps-dev mailing list
> > pywps-dev at lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/pywps-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pywps-dev/attachments/20200703/de6a1549/attachment.html>


More information about the pywps-dev mailing list