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

Docker(Alpine): Add additional GDAL driver #3058

Merged
merged 3 commits into from
Jun 28, 2023

Conversation

mmacata
Copy link
Contributor

@mmacata mmacata commented Jun 20, 2023

In alpine:3.18 many GDAL drivers were removed from the base package to reduce package size (see related alpine aports issue here). Instead they can be installed individually. A list of all available additional drivers can be found here. Few were already removed from 3.15 to 3.17.

This PR suggests to add the possibly most common ones.
Following a list of which drivers were removed from gdal-tools package between alpine:3.17 and alpine 3.18 :

vector
  4   BAG -raster,multidimensional raster,vector- (rw+v): Bathymetry Attributed Grid
  5   CAD -raster,vector- (rovs): AutoCAD Driver
  8   Carto -vector- (rw+): Carto
 15   Elasticsearch -vector- (rw+): Elastic Search
 16   FITS -raster,vector- (rw+): Flexible Image Transport System
 19   GMLAS -vector- (rwv): Geography Markup Language (GML) driven by application schemas
 32   JP2OpenJPEG -raster,vector- (rwv): JPEG-2000 driver based on OpenJPEG library
 34   LIBKML -vector- (rw+v): Keyhole Markup Language (LIBKML)
 37   MSSQLSpatial -vector- (rw+): Microsoft SQL Server Spatial Database
 42   MySQL -vector- (rw+): MySQL
 46   ODBC -vector- (ro):
 50   OGR_OGDI -vector- (ro): OGDI Vectors (VPF, VMAP, DCW)
 56   PCIDSK -raster,vector- (rw+v): PCIDSK Database File
 57   PDF -raster,vector- (rw+vs): Geospatial PDF
 61   PLSCENES -raster,vector- (ro): Planet Labs Scenes API
 62   PostgreSQL -vector- (rw+): PostgreSQL/PostGIS
 72   VFK -vector- (ro): Czech Cadastral Exchange Data Format
 76   XLS -vector- (ro): MS Excel format
 78   netCDF -raster,multidimensional raster,vector- (rw+s): Network Common Data Format

raster
 87   BAG -raster,multidimensional raster,vector- (rw+v): Bathymetry Attributed Grid
 94   CAD -raster,vector- (rovs): AutoCAD Driver
119   EXR -raster- (rw+vs): Extended Dynamic Range Image File Format
122   FITS -raster,vector- (rw+): Flexible Image Transport System
136   HDF5 -raster,multidimensional raster- (rovs): Hierarchical Data Format Release 5
137   HDF5Image -raster- (rov): HDF5 Dataset
138   HEIF -raster- (rov): ISO/IEC 23008-12:2017 High Efficiency Image File Format
150   JP2OpenJPEG -raster,vector- (rwv): JPEG-2000 driver based on OpenJPEG library
152   KEA -raster- (rw+v): KEA Image Format (.kea)
177   PCIDSK -raster,vector- (rw+v): PCIDSK Database File
178   PCRaster -raster- (rw+): PCRaster Raster File
179   PDF -raster,vector- (rw+vs): Geospatial PDF
183   PLSCENES -raster,vector- (ro): Planet Labs Scenes API
184   PNG -raster- (rwv): Portable Network Graphics
187   PostGISRaster -raster- (rws): PostGIS Raster driver
218   WEBP -raster- (rwv): WEBP
219   WMS -raster- (rwvs): OGC Web Map Service
225   netCDF -raster,multidimensional raster,vector- (rw+s): Network Common Data Format

What do you think about the selection I made @wenzeslaus @pesekon2 @neteler ?
Anyones redundant or missing?

@mmacata
Copy link
Contributor Author

mmacata commented Jun 20, 2023

Difference in image size for stable-alpine as example doesn't seem to be much:

grass-gis         stable-alpine-additional-gdal-drivers   93b67e3165fb   28 seconds ago   652MB
osgeo/grass-gis   stable-alpine                           b10393ab033f   13 days ago      643MB

@pesekon2
Copy link
Contributor

pesekon2 commented Jun 21, 2023

The selection makes sense to me. I could consider also LIBKML or GMLAS though, if they don't make a big difference in size.

@mmacata
Copy link
Contributor Author

mmacata commented Jun 21, 2023

The selection makes sense to me. I could consider also LIBKML or GMLAS though, if they don't make a big difference in size.

Only ~2MB. I added them both.

grass-gis             stable-alpine-more-additional-gdal-drivers   968a45f814ba   About a minute ago   654MB
grass-gis             stable-alpine-additional-gdal-drivers        93b67e3165fb   24 hours ago         652MB
osgeo/grass-gis       stable-alpine                                b10393ab033f   2 weeks ago          643MB

Copy link
Member

@ninsbl ninsbl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that. Looks good!
My comments are just suggestions and could be added by users later as well (for those who need that)...

docker/alpine/Dockerfile Show resolved Hide resolved
Copy link
Member

@neteler neteler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@neteler neteler merged commit 5cb4e43 into OSGeo:main Jun 28, 2023
neteler pushed a commit that referenced this pull request Jun 28, 2023
In `alpine:3.18` many GDAL drivers were removed from the base package to reduce package size [(see related alpine aports issue here)](https://gitlab.alpinelinux.org/alpine/aports/-/issues/14910). Instead they can be installed individually. A list of all available additional drivers can be found [here](https://pkgs.alpinelinux.org/packages?name=gdal-driver*&branch=v3.18&repo=&arch=x86_64&maintainer=). Few were already removed from 3.15 to 3.17. 

This PR suggests to add the possibly most common ones.
@neteler neteler added this to the 8.3.1 milestone Jun 28, 2023
neteler pushed a commit that referenced this pull request Jun 28, 2023
In `alpine:3.18` many GDAL drivers were removed from the base package to reduce package size [(see related alpine aports issue here)](https://gitlab.alpinelinux.org/alpine/aports/-/issues/14910). Instead they can be installed individually. A list of all available additional drivers can be found [here](https://pkgs.alpinelinux.org/packages?name=gdal-driver*&branch=v3.18&repo=&arch=x86_64&maintainer=). Few were already removed from 3.15 to 3.17. 

This PR suggests to add the possibly most common ones.
@neteler neteler modified the milestones: 8.3.1, 8.2.2 Jun 28, 2023
landam pushed a commit to landam/grass that referenced this pull request Oct 25, 2023
In `alpine:3.18` many GDAL drivers were removed from the base package to reduce package size [(see related alpine aports issue here)](https://gitlab.alpinelinux.org/alpine/aports/-/issues/14910). Instead they can be installed individually. A list of all available additional drivers can be found [here](https://pkgs.alpinelinux.org/packages?name=gdal-driver*&branch=v3.18&repo=&arch=x86_64&maintainer=). Few were already removed from 3.15 to 3.17. 

This PR suggests to add the possibly most common ones.
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
In `alpine:3.18` many GDAL drivers were removed from the base package to reduce package size [(see related alpine aports issue here)](https://gitlab.alpinelinux.org/alpine/aports/-/issues/14910). Instead they can be installed individually. A list of all available additional drivers can be found [here](https://pkgs.alpinelinux.org/packages?name=gdal-driver*&branch=v3.18&repo=&arch=x86_64&maintainer=). Few were already removed from 3.15 to 3.17. 

This PR suggests to add the possibly most common ones.
@wenzeslaus wenzeslaus changed the title Docker alpine: add additional GDAL driver Docker(Alpine): Add additional GDAL driver Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker Docker related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants