Skip to content

Ubuntu: Update Ubuntu Docker image to latest GRASS base#118

Open
ninsbl wants to merge 15 commits intoactinia-org:mainfrom
ninsbl:ubuntu_layered
Open

Ubuntu: Update Ubuntu Docker image to latest GRASS base#118
ninsbl wants to merge 15 commits intoactinia-org:mainfrom
ninsbl:ubuntu_layered

Conversation

@ninsbl
Copy link
Contributor

@ninsbl ninsbl commented Oct 20, 2025

This PR aligns the Dockerfile for actinia Ubuntu Images with the latest GRASS Dockerfile for Ubuntu images that are based on Ubuntu 24.04.
Currently, it does not work for the latest release branch (I guess) as Dockerfiles and images differ significantly. So this PR should be merged first when OSGeo/grass#6532 is addressed.

The changes here address

  • some vulnerabilities in the underlying dependencies,
  • implement build in stages (e.g. different layers for addons and SNAP),
  • update ESA SNAP version to SNAP 12.0,
  • cleans backup data after ESA SNAP update (~450 MB),
  • reduce build time for addon compilation, and
  • add OCI labels.

I am happy to receive feedback on this one while OSGeo/grass#6532 is in the making...

@ninsbl
Copy link
Contributor Author

ninsbl commented Oct 23, 2025

See: OSGeo/grass#6540

@ninsbl
Copy link
Contributor Author

ninsbl commented Oct 26, 2025

OK, now we have the updated GRASS image for the releasebranch: https://hub.docker.com/layers/osgeo/grass-gis/releasebranch_8_4-ubuntu/images/sha256-c7dcd077454bd049007502eab60e6aa3fb00cfadd6f67be19a93548339e5a5e1

That said, an actinia version based on the GRASS main branch would be great to have biild in CI too...

@ninsbl
Copy link
Contributor Author

ninsbl commented Oct 30, 2025

BTW, would you be open for CI-builds of images with an OS matrix (apline + ubuntu) or are the quota limitations on your docker.hub that prevent it? It would be ideal for my use-case to have prebuild Ubuntu images...

@neteler
Copy link
Member

neteler commented Dec 13, 2025

BTW, would you be open for CI-builds of images with an OS matrix (apline + ubuntu) or are the quota limitations on your docker.hub that prevent it? It would be ideal for my use-case to have prebuild Ubuntu images...

I think that's fine, we didn't run into quota limitations (yet).

@mmacata
Copy link
Member

mmacata commented Dec 18, 2025

Would there be two different Dockerfiles for Ubuntu needed? Or is it simply the replacement of the GRASS GIS base image? I`m asking because for alpine I would like to keep it as simple as possible, maintaining only one Dockerimage. That doesn't mean it has to be the same way for Ubuntu though.

@ninsbl
Copy link
Contributor Author

ninsbl commented Dec 22, 2025

Would there be two different Dockerfiles for Ubuntu needed? Or is it simply the replacement of the GRASS GIS base image? I`m asking because for alpine I would like to keep it as simple as possible, maintaining only one Dockerimage. That doesn't mean it has to be the same way for Ubuntu though.

It is in principle a replacement of the GRASS base image. Not sure if main and releasebranch are similar enough to exchange them at a later point (or how to do that). So, for my limited understanding of docker I would say two Ubuntu images would be ideal, but as you say, that can be different for alpine. See also: https://github.com/OSGeo/grass/pull/6800/files For an attempt on a matrix build with different build-args for different OSes...

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

Successfully merging this pull request may close these issues.

3 participants