geoserver / geoserver-cloud

Cloud Native GeoServer is GeoServer ready to use in the cloud through dockerized microservices.

Home Page:http://geoserver.org/geoserver-cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GDAL in Geoserver Cloud

ppradela opened this issue · comments

Do these environment variables LD_LIBRARY_PATH and GDAL_DATA work in the cloud version? I have GDAL installed in my system and downloaded GDAL plugin (jar files). Will it work if I put valid paths to these variables during the containers deployment and upload the GDAL plugin using webui importer?

Not that easy:

  • we need to install gdal-bin on the docker images. In order to do so, it'd be better if all the geoserver service images shared a common base image so they can share as many layers as possible (WIP at #396)
  • The gdal-java package is not available anymore from the apt repositories, so we need to install gdal.jar and gdalalljni.so by some other means
  • With that in place it'd be just a matter of including the geoserver GDAL and OGR extensions as maven dependencies

Thanks for the reply. On the normal version of Geoserver when I used it and I wanted to have GDAL I built the Geoserver image based on the GDAL image. As far I know the Geoserver image and the GDAL image are based on the Ubuntu image.

yeah, I've been experimenting with options. Of which, using osgeo/gdal:ubuntu-full-3.6.3 as base image brings up the issue of it being 1.64GB, so we'd end up with ~2GB images.

note right now we have

geoservercloud/geoserver-cloud-rest             1.6-SNAPSHOT             101c2da87680   6 days ago      637MB
geoservercloud/geoserver-cloud-gwc              1.6-SNAPSHOT             c65e10edabdd   6 days ago      641MB
geoservercloud/geoserver-cloud-wps              1.6-SNAPSHOT             553f62f0ecc2   6 days ago      643MB
geoservercloud/geoserver-cloud-wms              1.6-SNAPSHOT             379088befc8b   6 days ago      640MB
geoservercloud/geoserver-cloud-webui            1.6-SNAPSHOT             6e7ccef21fde   6 days ago      656MB
geoservercloud/geoserver-cloud-wfs              1.6-SNAPSHOT             cbe7d3b93465   6 days ago      622MB
geoservercloud/geoserver-cloud-wcs              1.6-SNAPSHOT             f06868de7437   6 days ago      604MB

where all of them share the layers of the base image

geoservercloud/gs-cloud-base-geoserver-image    1.6-SNAPSHOT             843f4accd820   6 days ago      463MB

which is built but not pushed