Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDAL in Geoserver Cloud #382

Open
ppradela opened this issue Dec 2, 2023 · 4 comments
Open

GDAL in Geoserver Cloud #382

ppradela opened this issue Dec 2, 2023 · 4 comments

Comments

@ppradela
Copy link
Contributor

ppradela commented Dec 2, 2023

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?

@groldan
Copy link
Member

groldan commented Dec 14, 2023

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 Use common base docker images to share layers across service images #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

@ppradela
Copy link
Contributor Author

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.

@groldan
Copy link
Member

groldan commented Jan 8, 2024

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.

@groldan
Copy link
Member

groldan commented Jan 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants