Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/regression-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jobs:
- name: Regression test => Different CRS (RDNAPTRANS -> EPSG:4258)
run: |
# start mapserver
docker run --rm -d -p 8181:80 --name mapserver-crs -v `pwd`/testdata/crs:/srv/data -e MAPSERVER_CONFIG_FILE=/srv/data/natpark.conf -e SERVICE_TYPE=wfs -e MS_MAPFILE=/srv/data/natpark.map pdok/mapserver:local-nl
docker run --rm -d -p 8181:80 --name mapserver-crs -v `pwd`/testdata/crs:/srv/data -e MAPSERVER_CONFIG_FILE=/srv/data/example.conf -e SERVICE_TYPE=wfs -e MS_MAPFILE=/srv/data/example.map pdok/mapserver:local-nl

# execute request
mkdir -p `pwd`/testdata/crs/actual
Expand All @@ -163,7 +163,7 @@ jobs:
# assert results are as expected
exit_code=0
[ $(cat `pwd`/testdata/crs/actual/output.json | jq -r '.crs.properties.name') == "urn:ogc:def:crs:EPSG::4258" ] || exit_code=1;
[ $(cat `pwd`/testdata/crs/actual/output.json | jq -r '.bbox[0]' | xargs -I '{}' echo "scale=5;" "({}-4.3646379084)/1 == 0" | bc) ] || exit_code=1;
[ $(cat `pwd`/testdata/crs/actual/output.json | jq -r '.bbox[0]' | xargs -I '{}' echo "scale=5;" "({}-4.3446379084)/1 == 0" | bc) ] || exit_code=1;
[ $(cat `pwd`/testdata/crs/actual/output.json | jq -r '.bbox[1]' | xargs -I '{}' echo "scale=5;" "({}-51.3620482342678)/1 == 0" | bc) ] || exit_code=1;
[ $(cat `pwd`/testdata/crs/actual/output.json | jq -r '.bbox[2]' | xargs -I '{}' echo "scale=5;" "({}-4.46528581228022)/1 == 0" | bc) ] || exit_code=1;
[ $(cat `pwd`/testdata/crs/actual/output.json | jq -r '.bbox[3]' | xargs -I '{}' echo "scale=5;" "({}-51.4268875774673)/1 == 0" | bc) ] || exit_code=1;
Expand Down
57 changes: 34 additions & 23 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ RUN apt-get update -y --fix-missing && \
libgif-dev \
libglib2.0-dev \
libcairo2-dev \
sqlite3 \
libjpeg-dev \
libpng-dev \
libpq-dev \
Expand All @@ -30,7 +29,6 @@ RUN apt-get update -y --fix-missing && \
libprotobuf-dev \
libprotobuf32 \
librsvg2-dev \
libsqlite3-dev \
libspatialite-dev \
libtiff5-dev \
libxslt1-dev \
Expand All @@ -48,52 +46,64 @@ RUN apt-get update -y --fix-missing && \

RUN update-locale LANG=C.UTF-8

WORKDIR /tmp

# SQLite's version-number convention is MAJOR*1000000 + MINOR*10000 + PATCH*100
ENV SQLITE_VERSION="3.53.4"
RUN SQLITE_DL_VERSION=$(printf '%d%02d%02d00' $(echo "${SQLITE_VERSION}" | tr '.' ' ')) && \
wget https://www.sqlite.org/$(date +%Y)/sqlite-autoconf-${SQLITE_DL_VERSION}.tar.gz && \
tar xzvf sqlite-autoconf-${SQLITE_DL_VERSION}.tar.gz && \
cd sqlite-autoconf-${SQLITE_DL_VERSION} && \
CFLAGS="-DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_JSON1=1 -DSQLITE_ENABLE_FTS5=1 -DSQLITE_ENABLE_LOAD_EXTENSION=1" \
LDFLAGS="-Wl,-soname,libsqlite3.so.0" \
./configure --prefix=/usr/local --disable-static && \
make && \
make install && \
ldconfig

ENV HARFBUZZ_VERSION="7.3.0"
RUN cd /tmp && \
wget https://github.com/harfbuzz/harfbuzz/releases/download/$HARFBUZZ_VERSION/harfbuzz-$HARFBUZZ_VERSION.tar.xz && \
tar xJf harfbuzz-$HARFBUZZ_VERSION.tar.xz && \
cd harfbuzz-$HARFBUZZ_VERSION && \
./configure && \
make && \
make install && \
ldconfig
RUN wget https://github.com/harfbuzz/harfbuzz/releases/download/$HARFBUZZ_VERSION/harfbuzz-$HARFBUZZ_VERSION.tar.xz && \
tar xJf harfbuzz-$HARFBUZZ_VERSION.tar.xz && \
cd harfbuzz-$HARFBUZZ_VERSION && \
./configure && \
make -j$(nproc) && \
make install && \
ldconfig

ENV PROJ_VERSION="9.3.1"
RUN wget https://github.com/OSGeo/PROJ/releases/download/${PROJ_VERSION}/proj-${PROJ_VERSION}.tar.gz
RUN tar xzvf proj-${PROJ_VERSION}.tar.gz && \
cd /proj-${PROJ_VERSION} && \
cd proj-${PROJ_VERSION} && \
mkdir build && \
cd build && \
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF && make -j$(nproc) && make install

ENV GDAL_VERSION="3.9.2"
RUN wget https://github.com/OSGeo/gdal/releases/download/v${GDAL_VERSION}/gdal-${GDAL_VERSION}.tar.gz
RUN tar xzvf gdal-${GDAL_VERSION}.tar.gz && \
cd /gdal-${GDAL_VERSION} && \
cd gdal-${GDAL_VERSION} && \
mkdir build && \
cd build && \
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DBUILD_APPS=OFF \
-DGDAL_USE_SPATIALITE=ON\
&& \
cmake --build . && \
cmake --build . --parallel $(nproc) && \
cmake --build . --target install


ENV MAPSERVER_VERSION="pdok-8-4-1-patch-1"
ENV MAPSERVER_VERSION="8.6.6"
RUN mkdir /usr/local/src/mapserver

# For now we run our own patch version
RUN wget -O mapserver.tar.gz \
https://github.com/PDOK/mapserver/archive/refs/tags/${MAPSERVER_VERSION}.tar.gz

RUN tar -xzf mapserver.tar.gz --strip-components=1 -C /usr/local/src/mapserver
# Use this when we want to run our own patch version
# RUN wget -O mapserver.tar.gz https://github.com/PDOK/mapserver/archive/refs/tags/${MAPSERVER_VERSION}.tar.gz
# RUN tar -xzf mapserver.tar.gz --strip-components=1 -C /usr/local/src/mapserver

# Use this when we want to build from the official MapServer release
# RUN wget https://github.com/MapServer/MapServer/releases/download/rel-$(echo $MAPSERVER_VERSION | sed -e "s/\./-/g")/mapserver-${MAPSERVER_VERSION}.tar.gz
# RUN tar -xf mapserver-8.*.tar.gz --strip-components 1 -C /usr/local/src/mapserver
RUN wget https://github.com/MapServer/MapServer/releases/download/rel-$(echo $MAPSERVER_VERSION | sed -e "s/\./-/g")/mapserver-${MAPSERVER_VERSION}.tar.gz
RUN tar -xf mapserver-8.*.tar.gz --strip-components 1 -C /usr/local/src/mapserver

RUN mkdir /usr/local/src/mapserver/build && \
cd /usr/local/src/mapserver/build && \
Expand Down Expand Up @@ -143,7 +153,7 @@ RUN mkdir /usr/local/src/mapserver/build && \
-DWITH_GENERIC_NINT=OFF \
-DWITH_PROTOBUFC=ON \
&& \
make && \
make -j$(nproc) && \
make install && \
ldconfig

Expand Down Expand Up @@ -197,6 +207,7 @@ COPY --from=builder /usr/local/share/proj/ /usr/local/share/proj/
COPY --from=builder /usr/include/ /usr/include/
COPY --from=builder /usr/local/bin/ /usr/local/bin/
COPY --from=builder /usr/local/lib/ /usr/local/lib/
RUN ldconfig
RUN chmod o+x /usr/local/bin/mapserv

ADD config/lighttpd.conf /srv/mapserver/config/lighttpd.conf
Expand Down
Loading