[Tile-serving] [openstreetmap/osm2pgsql] Dockerfile for osm2pgsql (#1428)

Rémy Léone notifications at github.com
Mon Mar 15 09:52:38 UTC 2021


I think we could do this work in 2 steps:
- As a first step, we should have the option in the build tool of osm2pgsql (cmake) to build the osm2pgsql binary from the sources statically. This would allow the creation of a single binary with no dependencies on external libraries. This is very similar to what golang does natively. This would be completely integrated into the already existing CMake build tool. So no new scripts there, only options added to an already existing script.
-  As a second step, using a multi-stage build to build from the sources (including with Lua support) and then placing the created binary in a container. This new Dockerfile would be a copy and paste from the build instructions that are already given and maintained in the README.md

This feature could really help develop a container-based workflow for ingesting data into postgis.
Before investing more time doing those contributions, I would like to know if the maintainers of the osm2pgsql would merge contributions that offer these two features? @lonvia @joto 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/discussions/1428#discussioncomment-483067
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20210315/3a92fe10/attachment-0001.htm>


More information about the Tile-serving mailing list