From 8d6b1db97ec11fa7986631eb840bfb1fa2d5fcce Mon Sep 17 00:00:00 2001 From: Greg Date: Thu, 16 Jun 2022 14:58:16 -0400 Subject: [PATCH] configure renderd --- Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ab1de7f..d15faed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -130,9 +130,14 @@ RUN mkdir -p /data/database/ \ ; # Configure renderd -RUN sed -i 's/renderaccount/renderer/g' /etc/renderd.conf \ -&& sed -i 's/\/truetype//g' /etc/renderd.conf \ -&& sed -i 's/hot/tile/g' /etc/renderd.conf +RUN sed -i 's,tile_dir=.*,tile_dir=/var/lib/mod_tile/,g' /etc/renderd.conf \ + echo $'[ajt] \n\ +URI=/tile/ \n\ +TILEDIR=/var/lib/mod_tile \n\ +XML=/home/renderer/src/openstreetmap-carto/mapnik.xml \n\ +HOST=localhost \n\ +TILESIZE=256 \n\ +MAXZOOM=20' >> /etc/renderd.conf # Install helper script COPY --from=compiler-helper-script /home/renderer/src/regional /home/renderer/src/regional