Conversation
Joxit
left a comment
There was a problem hiding this comment.
Hi, thank you for your contribution 😄 I left you some comments
For the record, the issue about this change : mapnik/mapnik#4036
| FROM debian:bullseye-slim | ||
|
|
||
| ENV MAPNIK_VERSION v3.1.0 | ||
| ENV MAPNIK_VERSION=v3.1.0 |
| && ln -s /usr/local/lib/mapnik /usr/local/lib/plugins | ||
|
|
||
| #WORKDIR /usr/local/lib | ||
| #ENTRYPOINT ["mapnik-render"] |
There was a problem hiding this comment.
mapnik-render requires to be run where it can access the plugins in "plugins/input" This is the reason for the symlink and the workdir.
There was a problem hiding this comment.
So it's related to this comment #2 (comment)
Mapnik team says:
mapnik-render at this point is only designed to be used locally, from within a mapnik git clone. So it is not expected to work if installed.
So adding workarounds for these purposes is not necessary.
| && cd /root \ | ||
| && wget 'https://download.osgeo.org/proj/proj-5.2.0.tar.gz' \ | ||
| && tar -zxf proj-5.2.0.tar.gz \ | ||
| && cd proj-5.2.0 \ |
There was a problem hiding this comment.
Try to replace this by
- && cd /root \
- && wget 'https://download.osgeo.org/proj/proj-5.2.0.tar.gz' \
- && tar -zxf proj-5.2.0.tar.gz \
- && cd proj-5.2.0 \
+ && mkdir proj \
+ && wget -q 'https://download.osgeo.org/proj/proj-5.2.0.tar.gz' -O - | tar -zx --strip-components=1 -C proj \
+ && cd proj \| && rm -rf /var/lib/apt/lists/* \ | ||
| && ln -s /usr/local/lib/mapnik /usr/lib/mapnik | ||
| && ln -s /usr/local/lib/mapnik /usr/lib/mapnik \ | ||
| && ln -s /usr/local/lib/mapnik /usr/local/lib/plugins |
There was a problem hiding this comment.
Why do you link the mapnik folder to plugin ?
There was a problem hiding this comment.
It is for mapnik-render to be able to access the plugins.
Fixed ENV for MAPNIK_VERSION and added support for proj (default proj from Debian was too far ahead, mapnik v3.1 needs proj v5.xx)