pacificclimate / docker-geospatial-python

Docker base image for geospatial python applications
GNU General Public License v3.0
1 stars 1 forks source link

Update to ubuntu 22.04, gdal 3.4, python 3.10 #14

Closed corviday closed 2 weeks ago

corviday commented 3 weeks ago

This branch updates ubuntu to 22.04, gdal to 3.4.1, and python to 3.10. It drops support for python 2.x, which gets tricker in ubuntu 22.04, and I don't think we're using it any more.

The goal was to fix the climate explorer backend build. Here is a demo of SCIP running with the fixed climate explorer backend built from this docker.

Aside from climate-explorer-backend, sandpiper seems to be the only repository currently using this container. It appears to be using a custom branch named "gdal3" and probably won't be affected by this update, though since this update has gdal 3.4, perhaps we should see if it can use this one as well so we have one fewer build to maintain.

rod-glover commented 2 weeks ago

Aside from climate-explorer-backend, sandpiper seems to be the only repository currently using this container. It appears to be using a custom branch named "gdal3" and probably won't be affected by this update, though since this update has gdal 3.4, perhaps we should see if it can use this one as well so we have one fewer build to maintain.

Excellent idea.

Nospamas commented 2 weeks ago

Echoing Rod's notes. Rolling the apt get and the caching purge into one line makes that layer overall smaller and seems to be the general best practice. In particular, purging caches before finishing the line lets docker finish layer with those caches already purged.

I was also going to suggest looking for a minimal ubuntu images but it looks like ubuntu images less than 30 megs and don't include a slim version. This is in contrast to something like debian which does publish separate slim images.

EDIT: this is also suggested in the best practices docker docs