Copy renderd manually

This commit is contained in:
Florian Stosse
2025-08-29 16:30:05 +02:00
parent ba1d4509af
commit 4dc73b5f04
2 changed files with 22 additions and 9 deletions

View File

@@ -157,18 +157,10 @@ RUN mkdir -p /run/renderd/ \
&& ln -s /data/tiles /var/cache/renderd/tiles \
;
RUN echo '[default] \n\
URI=/tile/ \n\
TILEDIR=/var/cache/renderd/tiles \n\
XML=/home/renderer/src/openstreetmap-carto/mapnik.xml \n\
HOST=localhost \n\
TILESIZE=256 \n\
MAXZOOM=20' >> /etc/renderd.conf \
&& sed -i 's,/usr/share/fonts/truetype,/usr/share/fonts,g' /etc/renderd.conf
COPY renderd.conf /etc/renderd.conf
# Install helper script
COPY --from=compiler-helper-script /home/renderer/src/regional /home/renderer/src/regional
COPY --from=compiler-stylesheet /root/openstreetmap-carto /home/renderer/src/openstreetmap-carto-backup
# Start running

21
renderd.conf Normal file
View File

@@ -0,0 +1,21 @@
; BASIC AND SIMPLE CONFIGURATION:
[renderd]
stats_file=/run/renderd/renderd.stats
socketname=/run/renderd/renderd.sock
num_threads=4
tile_dir=/var/cache/renderd/tiles
[mapnik]
plugins_dir=/usr/lib/mapnik/3.1/input
font_dir=/usr/share/fonts
font_dir_recurse=true
; ADD YOUR LAYERS:
[default]
URI=/tile/
TILEDIR=/var/cache/renderd/tiles
XML=/home/renderer/src/openstreetmap-carto/mapnik.xml
HOST=localhost
TILESIZE=256
MAXZOOM=20