This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

Use > 5.2.0 openstreetmap-carto with dockered openstreetmap-tile-server

0

I use OSM tile server deploying with docker from Overv's repository and in default configuration it works pretty well. In the dockerfile I tried to manualy upgrade openstreetmap-carto version to the newest version (today 5.3.1) with just:

RUN mkdir -p /home/renderer/src \ && cd /home/renderer/src \ && git clone --single-branch --branch v5.3.0 https://github.com/gravitystorm/openstreetmap-carto.git --depth 1 \ && cd openstreetmap-carto \ && rm -rf .git \ && npm install -g carto@0.18.2 \ && carto project.mml > mapnik.xml \ && scripts/get-shapefiles.py \ && rm /home/renderer/src/openstreetmap-carto/data/*.zip
but in the newer versions there is no script/get-shapefiles.py file, and building image crashed. I've checked and the highest version of openstreetmap-carto which include that file and builds successfully is 5.2.0.

I have found in INSTALL.md in "Manual download" chapter to download manually *.zip files and put them into path/to/openstreetmap-carto/data folder. But I can see that in deleted get-shapefiles.py script there is much more logic than just downloading files.
Does anyone know if it's good way to use that carto version in OSM Tile server, or maybe there is another way I don't know?

asked 11 Mar '21, 16:00

engopy's gravatar image

engopy
126101015
accept rate: 0%


One Answer:

2

Whenever the method that the "OSM Carto" map style uses for installation changes, sets of instructions for building it also need to change. I regularly update the guides at https://switch2osm.org/serving-tiles/ when people report that something no longer works.

The dockerfile at https://github.com/Overv/openstreetmap-tile-server/blob/master/Dockerfile still has to do the same things, so if something changes between OSM Carto versions that will need updating too. I'd suggesting creating an issue here to explain the changes that you'd like to see, and (once that's all sorted) an issue here requesting that the https://switch2osm.org/serving-tiles/using-a-docker-container/ page is updated to the new version of the dockerfile. I know you're not using that latter page of course; just asking as a courtesy for everyone who does!

answered 12 Mar '21, 10:19

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%