[gdal-dev] help with (docker) build workflow

Michael Sumner mdsumner at gmail.com
Sun Feb 19 10:48:18 PST 2023


Ah, awesome - thanks Even and Daniel, both very helpful.

Cheers, Mike



On Mon, Feb 20, 2023 at 5:36 AM Even Rouault <even.rouault at spatialys.com>
wrote:

> Michael,
>
> for your use case, you are only interested in the "builder" image, not the
> "runner" one.
>
> So just build it with something like: docker build . --target builder -t
> whatever_tag_name_you_want
>
> Even
> Le 19/02/2023 à 19:08, Michael Sumner a écrit :
>
> I would like to build GDAL in an image on the basis of a dockerfile used
> for CI, I'm confused by the layer process that copies the build outputs for
> the final steps
>
>
> https://github.com/OSGeo/gdal/blob/master/docker/ubuntu-small/Dockerfile#L231
>
> I want to be able to run that image and then do my own builds with cmake -
> but the layer COPY process doesn't include cmake or the other prereqs used
> above (to save space in the image).
>
> Is it easy to include the build capability as a layer-copy step?
>
> Or is this perhaps a bad idea, I'm looking for the easiest way to get a
> build system running with docker - I can unpick the builder/COPY process,
> but maybe I'm missing something easy.
>
> Thank you
>
> --
> Michael Sumner
> Software and Database Engineer
> Australian Antarctic Division
> Hobart, Australia
> e-mail: mdsumner at gmail.com
>
> _______________________________________________
> gdal-dev mailing listgdal-dev at lists.osgeo.orghttps://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> -- http://www.spatialys.com
> My software is free, but my time generally not.
>
>

-- 
Michael Sumner
Software and Database Engineer
Australian Antarctic Division
Hobart, Australia
e-mail: mdsumner at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230220/c9c00bed/attachment.htm>


More information about the gdal-dev mailing list