pdok / mapserver-docker Goto Github PK
View Code? Open in Web Editor NEWMapserver OGR GDAL PostGIS WMS WCS WFS with Lighttpd in Docker
Home Page: https://hub.docker.com/r/pdok/mapserver
License: MIT License
Mapserver OGR GDAL PostGIS WMS WCS WFS with Lighttpd in Docker
Home Page: https://hub.docker.com/r/pdok/mapserver
License: MIT License
Thanks for sharing. The email in the Dockerfile doesn't work, where can I contact someone regarding a very minor security issue?
for the example mapfile provided the logs show this error:
2022-02-09 11:47:43: (mod_fastcgi.c.421) FastCGI-stderr: msProcessProjection(): Projection library error. proj error "no arguments in initialization list" for "init=epsg:900913"
probably related to mention of 900913 in
mapserver-docker/example/example.map
Line 41 in 3c9d69a
suggest to add the projection to poj, because it is generally used, however it would be better to use epsg:3857
Hi,
I have run the example.map in local and it works well. The problem is when i try to run it in a remote server. I go to http://${HOST}/mapserver?REQUEST=GetCapabilities&SERVICE=WMS and it returns a 403 Error response or a file with "{}". Perhaps the problem is caused by lighttpd.
Do you have any suggestions?
Hi,
Trying to run the example.map setup on k8s, but I'm getting a 403 response:
10.233.103.117 mapserver-2637-main.kube-idev.bgslcdevops.test - [12/Apr/2023:11:02:06 +0200] "GET /?REQUEST=GetCapabilities&SERVICE=WMS HTTP/1.1" 403 341 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
10.233.103.117 mapserver-2637-main.kube-idev.bgslcdevops.test - [12/Apr/2023:11:02:46 +0200] "GET /?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=50,2.423859315589366403,54,9&CRS=EPSG:4326&WIDTH=1648&HEIGHT=1002&LAYERS=example&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE HTTP/1.1" 403 341 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
My dockerfile
looks like:
FROM pdok/mapserver:7.6.4-patch-5-2
ENV MS_MAPFILE=/srv/data/example.map
ENV SERVICE_TYPE=WMS
COPY ./content/ /srv/data
EXPOSE 80
content
contains the 3 example files
Do you have any suggestions?
Some organization are restricting the use of port 80.
Is there a way to configure a different port to use on localhost?
thanks.
When I run the command, I get the following result:
$ sudo docker build -t pdok/mapserver .
[+] Building 0.1s (1/1) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 2B 0.0s
ERROR: failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory
If I create the dockerfile manually and try again, I get the following:
$ sudo docker build -t pdok/mapserver .
[+] Building 2.0s (20/22) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 4.59kB 0.0s
=> [internal] load metadata for docker.io/pdok/lighttpd:1.4.67 1.7s
=> [internal] load metadata for docker.io/library/debian:buster 1.9s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> CANCELED [builder 1/8] FROM docker.io/library/debian:buster@sha256:bce46a1c39574f98c845df4a5acc6c70c211df5a6182e428c1155c33317d4920 0.0s
=> => resolve docker.io/library/debian:buster@sha256:bce46a1c39574f98c845df4a5acc6c70c211df5a6182e428c1155c33317d4920 0.0s
=> => sha256:bce46a1c39574f98c845df4a5acc6c70c211df5a6182e428c1155c33317d4920 984B / 984B 0.0s
=> => sha256:255eec9d157d35e00a81a45f1e958fd19437d504139e8eb4ea6cc380ea741ed4 529B / 529B 0.0s
=> => sha256:c94cce4c115de0a1328304e8981a68cf4b4b657ef6dbda52e188ac651368d603 1.46kB / 1.46kB 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 2B 0.0s
=> CANCELED [service 1/9] FROM docker.io/pdok/lighttpd:1.4.67@sha256:c8a3ec50dc964f67959f8652880c66b696c2421e1ca8d7b48a5b9ee87226e9c2 0.0s
=> => resolve docker.io/pdok/lighttpd:1.4.67@sha256:c8a3ec50dc964f67959f8652880c66b696c2421e1ca8d7b48a5b9ee87226e9c2 0.0s
=> => sha256:c8a3ec50dc964f67959f8652880c66b696c2421e1ca8d7b48a5b9ee87226e9c2 856B / 856B 0.0s
=> => sha256:581277dd8a663b04d00e7c45943037917abe2a6342a1ea804d09b0d9dfa5bb97 2.00kB / 2.00kB 0.0s
=> CACHED [builder 2/8] RUN apt-get -y update && apt-get install -y --no-install-recommends ca-certificates gettext xz-utils c 0.0s
=> CACHED [builder 3/8] RUN update-locale LANG=C.UTF-8 0.0s
=> CACHED [builder 4/8] RUN cd /tmp && wget https://github.com/harfbuzz/harfbuzz/releases/download/2.8.2/harfbuzz-2.8.2.tar.xz && tar xJf harfbuzz 0.0s
=> CACHED [builder 5/8] RUN apt-get -y update && apt-get install -y --no-install-recommends libcurl4-gnutls-dev libfribidi-dev libgif- 0.0s
=> CACHED [builder 6/8] RUN apt-get -y update --fix-missing 0.0s
=> CACHED [builder 7/8] RUN git clone --single-branch -b pdok-7-6-4-patch-5 https://github.com/pdok/mapserver/ /usr/local/src/mapserver 0.0s
=> CACHED [builder 8/8] RUN mkdir /usr/local/src/mapserver/build && cd /usr/local/src/mapserver/build && cmake ../ -DWITH_PROJ=ON -DWITH_K 0.0s
=> CACHED [service 2/9] COPY --from=builder /usr/local/bin /usr/local/bin 0.0s
=> CACHED [service 3/9] COPY --from=builder /usr/local/lib /usr/local/lib 0.0s
=> CACHED [service 4/9] RUN apt-get -y update && apt-get install -y --no-install-recommends ca-certificates libpng16-16 python-cairocf 0.0s
=> ERROR [service 5/9] ADD config/lighttpd.conf /srv/mapserver/config/lighttpd.conf 0.0s
=> ERROR [service 6/9] ADD config/include.conf /srv/mapserver/config/include.conf 0.0s
=> ERROR [service 7/9] ADD config/request.lua /srv/mapserver/config/request.lua 0.0s
------
> [service 5/9] ADD config/lighttpd.conf /srv/mapserver/config/lighttpd.conf:
------
------
> [service 6/9] ADD config/include.conf /srv/mapserver/config/include.conf:
------
------
> [service 7/9] ADD config/request.lua /srv/mapserver/config/request.lua:
------
Dockerfile:160
--------------------
158 | ADD config/lighttpd.conf /srv/mapserver/config/lighttpd.conf
159 | ADD config/include.conf /srv/mapserver/config/include.conf
160 | >>> ADD config/request.lua /srv/mapserver/config/request.lua
161 |
162 | RUN chmod o+x /usr/local/bin/mapserv
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref b2de52a4-9d6c-4e4d-95f8-eb49f008296d::ehnctf60lykflhwabkjj82a3z: failed to walk /var/lib/docker/tmp/buildkit-mount3659353059/config: lstat /var/lib/docker/tmp/buildkit-mount3659353059/config: no such file or directory
Please advise.
Hello. Are there any plans of updating the image to use mapserver 8?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.