[gdal-dev] Upgrade or remove Java JDK 17 in GDAL Docker image

Matt Luck - NOAA Affiliate matt.luck at noaa.gov
Fri Sep 13 12:31:13 PDT 2024


Hi Even,

I was able to use ubuntu-small-3.8.4 and that solved our JDK issue for now.
Thanks for the suggestion!

In addition, I tried a few things to use ubuntu-small-3.8.5 but ran into
problems.

> docker pull ghcr.io/osgeo/gdal:ubuntu-small-3.8.5
> ubuntu-small-3.8.5: Pulling from osgeo/gdal
> bccd10f490ab: Already exists
> 4f4fb700ef54: Already exists
> 149687fd87fe: Extracting
> [==================================================>]   6.78MB/6.78MB
> ea1e59f6ea30: Download complete
> 24d68adca93e: Download complete
> 501367299254: Download complete
> 254b87986c38: Download complete
> b4ae7f543abd: Download complete
> aa6a3265ff93: Download complete
> 9d59aec5a302: Download complete
> de7007069201: Download complete
> ea0e30b0513c: Download complete
> 7dd0e32f956a: Download complete
> 7ecb828005cd: Download complete
> eaea81e1f83b: Download complete
> 06c4e634e6ab: Download complete
> failed to register layer: open
> /var/lib/docker/overlay2/2d4142f840d37924c2699f68fbcc56b2b028212fe23c4d43135dd26f7838bc45/.tmp-committed1091585065:
> no such file or directory


I tried to build v3.8.5 with ./docker/ubuntu-small/build.sh

> Step 44/44 : RUN ldconfig
>  ---> Running in e33c148d809c
>  ---> Removed intermediate container e33c148d809c
>  ---> 6d9a08c0c2c5
> [Warning] One or more build-args [WITH_DEBUG_SYMBOLS] were not consumed
> Successfully built 6d9a08c0c2c5
> Successfully tagged ghcr.io/osgeo/gdal:ubuntu-small-latest-amd64
> GDAL 3.10.0dev-acca3c2709e96bce8d208a1d26efe12ce299b252, released
> 2024/09/13
> PROJ.4 string:
> +proj=longlat +datum=WGS84 +no_defs +type=crs


> WKT2:2019 string:
> GEOGCRS["WGS 84",
>     ENSEMBLE["World Geodetic System 1984 ensemble",
>         MEMBER["World Geodetic System 1984 (Transit)"],
>         MEMBER["World Geodetic System 1984 (G730)"],
>         MEMBER["World Geodetic System 1984 (G873)"],
>         MEMBER["World Geodetic System 1984 (G1150)"],
>         MEMBER["World Geodetic System 1984 (G1674)"],
>         MEMBER["World Geodetic System 1984 (G1762)"],
>         MEMBER["World Geodetic System 1984 (G2139)"],
>         MEMBER["World Geodetic System 1984 (G2296)"],
>         ELLIPSOID["WGS 84",6378137,298.257223563,
>             LENGTHUNIT["metre",1]],
>         ENSEMBLEACCURACY[2.0]],
>     PRIMEM["Greenwich",0,
>         ANGLEUNIT["degree",0.0174532925199433]],
>     CS[ellipsoidal,2],
>         AXIS["geodetic latitude (Lat)",north,
>             ORDER[1],
>             ANGLEUNIT["degree",0.0174532925199433]],
>         AXIS["geodetic longitude (Lon)",east,
>             ORDER[2],
>             ANGLEUNIT["degree",0.0174532925199433]],
>     USAGE[
>         SCOPE["Horizontal component of 3D system."],
>         AREA["World."],
>         BBOX[-90,-180,90,180]],
>     ID["EPSG",4326]]
> GDAL 3.10.0dev-acca3c2709e96bce8d208a1d26efe12ce299b252, released
> 2024/09/13
> Using PROJ_DATUMGRID_LATEST_LAST_MODIFIED=Last-Modified: Sat, 15 Sep 2018
> 13:57:12 GMT
> Using PROJ_VERSION=0a407325fbb5bf42407a7dc5d4f948be9707e302
> Using GDAL_VERSION=acca3c2709e96bce8d208a1d26efe12ce299b252
> Using GDAL_REPOSITORY=OSGeo/gdal
> Using GDAL_RELEASE_DATE=20240913
> 05d7e24ca35f   osgeo/gdal:gdal_rsync_daemon   "/bin/sh -c 'rsync -…"   2
> hours ago   Up 2 hours   23985/tcp   gdal_rsync_daemon
> Fetching digest for ubuntu:22.04 linux/arm64...
> 22.04: Pulling from arm64v8/ubuntu
> e63ce922f022: Pull complete
> Digest:
> sha256:d174844cad059080ac551111ccd311d18f0a97ec562c28b3a3189f99e0ff1256
> Status: Downloaded newer image for arm64v8/ubuntu:22.04
> docker.io/arm64v8/ubuntu:22.04
> /home/rdp-user/git/gdal/./docker/ubuntu-small/../util.sh: line 416: jq:
> command not found


Matt

On Fri, Sep 13, 2024 at 10:08 AM Even Rouault <even.rouault at spatialys.com>
wrote:

>
> How can I resolve this error?
>
> You have stripped too much of the logs. There must be some "error: "
> compilation line before that points to the actual error.
>
>
> Alternatively, we have considered a different solution that uses
> ubuntu:22.04 as our base image and then installing GDAL but also having
> problems with installing GDAL (I can't seem to get past dependency
> conflicts for v3.8.5 in pipenv so trying v3.8.3), getting an error:
>
> Collecting gdal==3.8.3 (from -r
>> /tmp/pipenv-gde160cj-requirements/pipenv-ndnw2zi0-hashed-reqs.txt (line 62))
>>   Downloading GDAL-3.8.3.tar.gz (802 kB)
>>      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 802.5/802.5 kB 104.5 MB/s eta
>> 0:00:00
>>   Preparing metadata (setup.py): started
>>   Preparing metadata (setup.py): finished with status 'error'
>> error: subprocess-exited-with-error
>>
>>   × python setup.py egg_info did not run successfully.
>>   │ exit code: 1
>
>
>
>> Exception: Python bindings of GDAL 3.8.3 require at least libgdal 3.8.3,
>> but 3.4.1 was found
>
>
> How can we upgrade libgdal (in our Dockerfile)?
>
> - Use another Docker image, like alpine-normal or ubuntu-small, that
> doesn't have the Java dependency
>
> - Use Conda to install GDAL
>
> - Use plain ubuntu:24.04 that ships with GDAL 3.8.4 as a proper .deb
> package (https://launchpad.net/ubuntu/noble/+source/gdal)
>
> - ...
>
> -- http://www.spatialys.com
> My software is free, but my time generally not.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240913/1217d784/attachment.htm>


More information about the gdal-dev mailing list