Skip to content

Comments

docker: gdal-grass autoconf workaround (G84)#5123

Merged
neteler merged 1 commit intoOSGeo:releasebranch_8_4from
neteler:docker_gdal-grass_autoconf_workaround
Feb 16, 2025
Merged

docker: gdal-grass autoconf workaround (G84)#5123
neteler merged 1 commit intoOSGeo:releasebranch_8_4from
neteler:docker_gdal-grass_autoconf_workaround

Conversation

@neteler
Copy link
Member

@neteler neteler commented Feb 15, 2025

This PR hardcodes the gdal-grass 1.0.3 release in the Alpine and Ubuntu Dockerfile to continue using its autoconf support.

This PR may be replaced by a future backport of a cmake based solution which is being worked on in the main branch.

The intention of this PR is not to further delay the GRASS 8.4.1 release due to currently broken Dockerfiles.

This PR hardcodes the gdal-grass 1.0.3 release in the Alpine and Ubuntu Dockerfile to make use of `autoconf`.

It may be replaces with a future backport of a `cmake` based solution.

The intention is to not further postpone the GRASS 8.4.1 release.
@neteler neteler added docker Docker related CI Continuous integration labels Feb 15, 2025
@neteler neteler added this to the 8.4.1 milestone Feb 15, 2025
@neteler neteler requested a review from nilason February 15, 2025 15:46
@echoix
Copy link
Member

echoix commented Feb 15, 2025

Until I finish my PR (actively working on it) that will allow to test Docker on PRs, can you make sure that the Dockerfile works locally?

@neteler
Copy link
Member Author

neteler commented Feb 15, 2025

Quick local micro-tests:

# GRASS GIS test
docker run -it --rm b07a3e207f0037542fb11410c43ab99887d7c27e73d1bff7b3cf34b40a44da36 grass --version
GRASS GIS 8.4.1dev
...
# ogrinfo test with grass-gdal driver:
docker run -it --rm --volume="$(pwd)/:/data" b07a3e207f0037542fb11410c43ab99887d7c27e73d1bff7b3cf34b40a44da36 ogrinfo -so -al /data/grassdata/nc_spm_08_grass7/PERMANENT/vector/zipcodes_wake/head
INFO: Open of `/data/grassdata/nc_spm_08_grass7/PERMANENT/vector/zipcodes_wake/head'
      using driver `OGR_GRASS' successful.

Layer name: 0
Geometry: Line String
Feature Count: 158
Extent: (610047.866451, 196327.520901) - (677060.680666, 258102.572146)
Layer SRS WKT:
PROJCRS["unknown",
    BASEGEOGCRS["grs80",
        DATUM["North American Datum 1983",
            ELLIPSOID["Geodetic_Reference_System_1980",6378137,298.257222101,
...

Yes, this works.

@echoix
Copy link
Member

echoix commented Feb 15, 2025

What dockerfile was it? Was it the alpine one?

Copy link
Contributor

@nilason nilason left a comment

Choose a reason for hiding this comment

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

Thanks, as this uses the original autoconf settings which still is unmodified in 1.0.3, this will surely work!

@neteler
Copy link
Member Author

neteler commented Feb 15, 2025

What dockerfile was it? Was it the alpine one?

  • Dockerfile
  • docker/ubuntu/Dockerfile (identical to the above one)
  • docker/alpine/Dockerfile

@neteler neteler merged commit 41f3c38 into OSGeo:releasebranch_8_4 Feb 16, 2025
25 checks passed
@neteler neteler deleted the docker_gdal-grass_autoconf_workaround branch February 16, 2025 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous integration docker Docker related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants