<div dir="ltr"><div>Hi Even,</div><div><br></div><div>I was able to use ubuntu-small-3.8.4 and that solved our JDK issue for now. Thanks for the suggestion!</div><div><br></div><div>In addition, I tried a few things to use ubuntu-small-3.8.5 but ran into problems.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> docker pull <a href="http://ghcr.io/osgeo/gdal:ubuntu-small-3.8.5">ghcr.io/osgeo/gdal:ubuntu-small-3.8.5</a><br>ubuntu-small-3.8.5: Pulling from osgeo/gdal<br>bccd10f490ab: Already exists<br> 4f4fb700ef54: Already exists<br> 149687fd87fe: Extracting [==================================================>] 6.78MB/6.78MB<br>ea1e59f6ea30: Download complete<br> 24d68adca93e: Download complete<br> 501367299254: Download complete<br> 254b87986c38: Download complete<br> b4ae7f543abd: Download complete<br> aa6a3265ff93: Download complete<br> 9d59aec5a302: Download complete<br> de7007069201: Download complete<br> ea0e30b0513c: Download complete<br> 7dd0e32f956a: Download complete<br> 7ecb828005cd: Download complete<br> eaea81e1f83b: Download complete<br> 06c4e634e6ab: Download complete<br> failed to register layer: open /var/lib/docker/overlay2/2d4142f840d37924c2699f68fbcc56b2b028212fe23c4d43135dd26f7838bc45/.tmp-committed1091585065: no such file or directory</blockquote><div><br></div><div>I tried to build v3.8.5 with ./docker/ubuntu-small/build.sh</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Step 44/44 : RUN ldconfig<br> ---> Running in e33c148d809c<br> ---> Removed intermediate container e33c148d809c<br> ---> 6d9a08c0c2c5<br>[Warning] One or more build-args [WITH_DEBUG_SYMBOLS] were not consumed<br>Successfully built 6d9a08c0c2c5<br>Successfully tagged <a href="http://ghcr.io/osgeo/gdal:ubuntu-small-latest-amd64">ghcr.io/osgeo/gdal:ubuntu-small-latest-amd64</a><br>GDAL 3.10.0dev-acca3c2709e96bce8d208a1d26efe12ce299b252, released 2024/09/13<br>PROJ.4 string:<br>+proj=longlat +datum=WGS84 +no_defs +type=crs</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>WKT2:2019 string:<br>GEOGCRS["WGS 84",<br> ENSEMBLE["World Geodetic System 1984 ensemble",<br> MEMBER["World Geodetic System 1984 (Transit)"],<br> MEMBER["World Geodetic System 1984 (G730)"],<br> MEMBER["World Geodetic System 1984 (G873)"],<br> MEMBER["World Geodetic System 1984 (G1150)"],<br> MEMBER["World Geodetic System 1984 (G1674)"],<br> MEMBER["World Geodetic System 1984 (G1762)"],<br> MEMBER["World Geodetic System 1984 (G2139)"],<br> MEMBER["World Geodetic System 1984 (G2296)"],<br> ELLIPSOID["WGS 84",6378137,298.257223563,<br> LENGTHUNIT["metre",1]],<br> ENSEMBLEACCURACY[2.0]],<br> PRIMEM["Greenwich",0,<br> ANGLEUNIT["degree",0.0174532925199433]],<br> CS[ellipsoidal,2],<br> AXIS["geodetic latitude (Lat)",north,<br> ORDER[1],<br> ANGLEUNIT["degree",0.0174532925199433]],<br> AXIS["geodetic longitude (Lon)",east,<br> ORDER[2],<br> ANGLEUNIT["degree",0.0174532925199433]],<br> USAGE[<br> SCOPE["Horizontal component of 3D system."],<br> AREA["World."],<br> BBOX[-90,-180,90,180]],<br> ID["EPSG",4326]]<br>GDAL 3.10.0dev-acca3c2709e96bce8d208a1d26efe12ce299b252, released 2024/09/13<br>Using PROJ_DATUMGRID_LATEST_LAST_MODIFIED=Last-Modified: Sat, 15 Sep 2018 13:57:12 GMT<br>Using PROJ_VERSION=0a407325fbb5bf42407a7dc5d4f948be9707e302<br>Using GDAL_VERSION=acca3c2709e96bce8d208a1d26efe12ce299b252<br>Using GDAL_REPOSITORY=OSGeo/gdal<br>Using GDAL_RELEASE_DATE=20240913<br>05d7e24ca35f osgeo/gdal:gdal_rsync_daemon "/bin/sh -c 'rsync -…" 2 hours ago Up 2 hours 23985/tcp gdal_rsync_daemon<br>Fetching digest for ubuntu:22.04 linux/arm64...<br>22.04: Pulling from arm64v8/ubuntu<br>e63ce922f022: Pull complete<br> Digest: sha256:d174844cad059080ac551111ccd311d18f0a97ec562c28b3a3189f99e0ff1256<br>Status: Downloaded newer image for arm64v8/ubuntu:22.04<br><a href="http://docker.io/arm64v8/ubuntu:22.04">docker.io/arm64v8/ubuntu:22.04</a><br>/home/rdp-user/git/gdal/./docker/ubuntu-small/../util.sh: line 416: jq: command not found</blockquote><div><br></div><div>Matt</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 13, 2024 at 10:08 AM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<br>
<blockquote type="cite">
<div dir="ltr">
<div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">How
can I resolve this error?</div>
</div>
</div>
</blockquote>
You have stripped too much of the logs. There must be some "error: "
compilation line before that points to the actual error.<br>
<blockquote type="cite">
<div dir="ltr">
<div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">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 (<span style="font-size:12pt">I can't seem to get past dependency
conflicts for v3.8.5 in pipenv so trying </span><span style="font-size:12pt">v3.8.3</span><span style="font-size:12pt">), getting an error:</span></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Collecting gdal==3.8.3 (from -r
/tmp/pipenv-gde160cj-requirements/pipenv-ndnw2zi0-hashed-reqs.txt
(line 62))<br>
Downloading GDAL-3.8.3.tar.gz (802 kB)<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 802.5/802.5 kB
104.5 MB/s eta 0:00:00<br>
Preparing metadata (setup.py): started<br>
Preparing metadata (setup.py): finished with status
'error'<br>
error: subprocess-exited-with-error<br>
<br>
× python setup.py egg_info did not run successfully.<br>
<span style="font-family:Arial,Helvetica,sans-serif;font-size:small;color:rgb(34,34,34)">
│ exit code: 1</span></blockquote>
<div> </div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Exception: Python bindings of GDAL 3.8.3
require at least libgdal 3.8.3, but 3.4.1 was found</blockquote>
<div> </div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">How
can we upgrade libgdal (in our Dockerfile)?</div>
</div>
</div>
</blockquote>
<p>- Use another Docker image, like alpine-normal or ubuntu-small,
that doesn't have the Java dependency</p>
<p>- Use Conda to install GDAL</p>
<p>- Use plain ubuntu:24.04 that ships with GDAL 3.8.4 as a proper
.deb package (<a href="https://launchpad.net/ubuntu/noble/+source/gdal" target="_blank">https://launchpad.net/ubuntu/noble/+source/gdal</a>)</p>
<p>- ...</p>
<br>
<pre cols="72">--
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</div>
</blockquote></div>