<div dir="ltr"><div><div><div><div>Hi Adam<br></div>Thank you for the docker filel I have integrated things into a new docker and pushed tot github just some notes<br><br></div>For some reason alpine:latest (alpine:3.7) gave me problems with Xerces compilation it hangs looking for some files, but with 3.6 it worked fine.<br><br></div>Not certain if you want your name in the maintance contact in dockerfile<br><br></div>Jorge<br><div class="gmail_extra">PS: everytime I see lastest in a dockerfile I fell pain all over my body...<br></div><div class="gmail_extra"><div class="gmail_quote">On Sun, Nov 26, 2017 at 7:44 PM, Adam Laža <span dir="ltr"><<a href="mailto:ad.laza32@gmail.com" target="_blank">ad.laza32@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hello everyone,<br><br></div>finally I've found the problem. It's necessary to compile GDAL with xerces, expat and geos. For geos and expat there are alpine packages, xerces has to be installed manually.<br></div>Updated Dockerfile is attached. Probably there is a smoother way how to have pywps-demo docker with GDAL but at least this one works.<br><br></div>Cheers,<br></div>Adam<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-11-25 23:40 GMT+01:00 Adam Laža <span dir="ltr"><<a href="mailto:ad.laza32@gmail.com" target="_blank">ad.laza32@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hello Jorge,<br><br></div>thanks for the link it was really helpful. I edited my Dockerfile (in attachment) and after build it looks that GDAL is installed (inside running docker I tried to run gdalinfo command and import gdal module in python console and both looked ok).<br></div>However when I run demo process buffer I get <br><br><ows:ExceptionText>Input data not valid using mode 2</ows:ExceptionText> <br><br>in response and in demo.py output:<br><br> * Running on <a href="http://0.0.0.0:5000/" target="_blank">http://0.0.0.0:5000/</a> (Press CTRL+C to quit)<br>ERROR 1: Unable to create Xerces C++ or Expat based GML reader, Xerces or Expat support not configured into GDAL/OGR.<br>ERROR 1: File /tmp/pywps_process_3z1kdw9t/tm<wbr>pgpw33gki appears to be GML but the GML reader can't<br>be instantiated, likely because Xerces or Expat support was<br>not configured in.<br>172.17.0.1 - - [25/Nov/2017 22:33:27] "POST /wps HTTP/1.1" 400 -<br></div><div><br></div><div>The same proccess on my locally installed pywps instance ends successfuly so I suppose I forgot to add something to dockerfile.</div><div><br></div><div>Any idea what I'm missing? Thanks.</div><span class="m_8720248618691760921HOEnZb"><font color="#888888"><div><br></div><div>Adam<br></div></font></span></div><div class="m_8720248618691760921HOEnZb"><div class="m_8720248618691760921h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-11-21 8:43 GMT+01:00 jorge.dejesus <span dir="ltr"><<a href="mailto:jorge.dejesus@geocat.net" target="_blank">jorge.dejesus@geocat.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Hi Adam</p>
    <p>Actually you have a good point, the docker images have no install
      for GDAL. I will try to update  the dockerfile in the following
      days (bit pressed with work). <br>
    </p>
    <p>For GDAL I normally install in server I normally follow the
      things from Geographica</p>
    <p><br>
    </p>
    <p><a class="m_8720248618691760921m_-4309898096216433863m_-2705617373834959657moz-txt-link-freetext" href="https://github.com/GeographicaGS/Docker-GDAL2/tree/master/2.2.2" target="_blank">https://github.com/Geographica<wbr>GS/Docker-GDAL2/tree/master/2.<wbr>2.2</a></p>
    <p><a class="m_8720248618691760921m_-4309898096216433863m_-2705617373834959657moz-txt-link-freetext" href="https://github.com/GeographicaGS/Docker-GDAL2/blob/master/2.2.2/Dockerfile" target="_blank">https://github.com/Geographica<wbr>GS/Docker-GDAL2/blob/master/2.<wbr>2.2/Dockerfile</a><br>
    </p>
    <br>
    These dockersfile are for ubuntu and python3 so therefore they will
    properly work with pywps4-flask<br>
    <br>
    Jorge<div><div class="m_8720248618691760921m_-4309898096216433863h5"><br>
    <br>
    <div class="m_8720248618691760921m_-4309898096216433863m_-2705617373834959657moz-cite-prefix">On 20-11-17 22:36, Adam Laža wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="m_8720248618691760921m_-4309898096216433863h5">
      <div dir="ltr">
        <div>Hi devs,<br>
        </div>
        <div><br>
        </div>
        <div>I'm using pywps-flask docker image but when I tried to run
          demo processes which need gdal I got this exception:</div>
        <div><br>
        </div>
        <div><ows:ExceptionText>Complex validation requires
          GDAL/OGR support</ows:ExceptionText></div>
        <div><br>
        </div>
        <div>I wanted to edit dockerfile so there will be gdal installed
          but I wasn't really successful. I tried different ways to
          install gdal with apk and pip but none of them succeeded. <br>
        </div>
        <div><br>
        </div>
        <div>Does anybody use pywps in docker with gdal installed (and
          with Dockerfile using alpine)?</div>
        <div><br>
        </div>
        <div>Thanks in advance.</div>
        <div>Adam<br>
        </div>
      </div>
      <br>
      <fieldset class="m_8720248618691760921m_-4309898096216433863m_-2705617373834959657mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
pywps-dev mailing list
<a class="m_8720248618691760921m_-4309898096216433863m_-2705617373834959657moz-txt-link-abbreviated" href="mailto:pywps-dev@lists.osgeo.org" target="_blank">pywps-dev@lists.osgeo.org</a>
<a class="m_8720248618691760921m_-4309898096216433863m_-2705617373834959657moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/pywps-dev" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/pywps-dev</a></pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>