NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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%


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!

permanent link

answered 12 Mar '21, 10:19

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×287
×204
×22

question asked: 11 Mar '21, 16:00

question was seen: 1,804 times

last updated: 12 Mar '21, 10:19

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum