Skip to content

Commit

Permalink
And adjust Dockerfiles & docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hummeltech committed Jun 20, 2024
1 parent 42f9e0f commit df10137
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 53 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ endif()
if(NOT RENDERD_SOCKET MATCHES "^/")
set(RENDERD_SOCKET "/${RENDERD_SOCKET}")
endif()
if(NOT RENDERD_RUN_DIR MATCHES "^/")
set(RENDERD_RUN_DIR "/${RENDERD_RUN_DIR}")
endif()
if(NOT RENDERD_TILE_DIR MATCHES "^/")
set(RENDERD_TILE_DIR "/${RENDERD_TILE_DIR}")
endif()
Expand Down
6 changes: 2 additions & 4 deletions docker/archlinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ RUN export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) && \
cmake -B . -S /tmp/mod_tile_src \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_CXX_STANDARD:STRING=17 \
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
-DCMAKE_INSTALL_PREFIX:PATH=/ \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=run \
-DENABLE_TESTS:BOOL=ON && \
cmake --build .
RUN export CTEST_PARALLEL_LEVEL=$(nproc) && \
Expand Down
6 changes: 2 additions & 4 deletions docker/centos/stream/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,8 @@ WORKDIR /tmp/mod_tile_build
RUN export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) && \
cmake -B . -S /tmp/mod_tile_src \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
-DCMAKE_INSTALL_PREFIX:PATH=/ \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=run \
-DENABLE_TESTS:BOOL=ON && \
cmake --build .
RUN export CTEST_PARALLEL_LEVEL=$(nproc) && \
Expand Down
6 changes: 2 additions & 4 deletions docker/centos/stream/Dockerfile.mapnik-latest
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,8 @@ WORKDIR /tmp/mod_tile_build
RUN export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) && \
cmake -B . -S /tmp/mod_tile_src \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
-DCMAKE_INSTALL_PREFIX:PATH=/ \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=run \
-DENABLE_TESTS:BOOL=ON && \
cmake --build .
RUN export CTEST_PARALLEL_LEVEL=$(nproc) && \
Expand Down
6 changes: 2 additions & 4 deletions docker/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ WORKDIR /tmp/mod_tile_build
RUN export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) && \
cmake -B . -S /tmp/mod_tile_src \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
-DCMAKE_INSTALL_PREFIX:PATH=/ \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=run \
-DENABLE_TESTS:BOOL=ON && \
cmake --build .
RUN export CTEST_PARALLEL_LEVEL=$(nproc) && \
Expand Down
6 changes: 2 additions & 4 deletions docker/fedora/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ WORKDIR /tmp/mod_tile_build
RUN export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) && \
cmake -B . -S /tmp/mod_tile_src \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
-DCMAKE_INSTALL_PREFIX:PATH=/ \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=run \
-DENABLE_TESTS:BOOL=ON && \
cmake --build .
RUN export CTEST_PARALLEL_LEVEL=$(nproc) && \
Expand Down
6 changes: 2 additions & 4 deletions docker/opensuse/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,8 @@ WORKDIR /tmp/mod_tile_build
RUN export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) && \
cmake -B . -S /tmp/mod_tile_src \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
-DCMAKE_INSTALL_PREFIX:PATH=/ \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=run \
-DENABLE_TESTS:BOOL=ON && \
cmake --build .
RUN export CTEST_PARALLEL_LEVEL=$(nproc) && \
Expand Down
6 changes: 2 additions & 4 deletions docker/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ WORKDIR /tmp/mod_tile_build
RUN export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) && \
cmake -B . -S /tmp/mod_tile_src \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
-DCMAKE_INSTALL_PREFIX:PATH=/ \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=run \
-DENABLE_TESTS:BOOL=ON && \
cmake --build .
RUN export CTEST_PARALLEL_LEVEL=$(nproc) && \
Expand Down
6 changes: 2 additions & 4 deletions docs/build/building_on_arch_linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ git clone --depth 1 https://github.com/openstreetmap/mod_tile.git .
cd /tmp/mod_tile_build
cmake -B . -S /tmp/mod_tile_src \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
-DCMAKE_INSTALL_PREFIX:PATH=/ \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=run \
-DENABLE_TESTS:BOOL=ON
cmake --build .
ctest
Expand Down
6 changes: 2 additions & 4 deletions docs/build/building_on_centos_stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,8 @@ git clone --depth 1 https://github.com/openstreetmap/mod_tile.git .
cd /tmp/mod_tile_build
cmake -B . -S /tmp/mod_tile_src \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
-DCMAKE_INSTALL_PREFIX:PATH=/ \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=run \
-DENABLE_TESTS:BOOL=ON
cmake --build .
ctest
Expand Down
6 changes: 2 additions & 4 deletions docs/build/building_on_debian.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ git clone --depth 1 https://github.com/openstreetmap/mod_tile.git .
cd /tmp/mod_tile_build
cmake -B . -S /tmp/mod_tile_src \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
-DCMAKE_INSTALL_PREFIX:PATH=/ \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=run \
-DENABLE_TESTS:BOOL=ON
cmake --build .
ctest
Expand Down
6 changes: 2 additions & 4 deletions docs/build/building_on_fedora.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ git clone --depth 1 https://github.com/openstreetmap/mod_tile.git .
cd /tmp/mod_tile_build
cmake -B . -S /tmp/mod_tile_src \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
-DCMAKE_INSTALL_PREFIX:PATH=/ \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=run \
-DENABLE_TESTS:BOOL=ON
cmake --build .
ctest
Expand Down
1 change: 0 additions & 1 deletion docs/build/building_on_macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ cmake -B . -S /tmp/mod_tile_src \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
-DCMAKE_INSTALL_PREFIX:PATH=/usr/local \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/var/run \
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
-DENABLE_TESTS:BOOL=ON
cmake --build .
Expand Down
6 changes: 2 additions & 4 deletions docs/build/building_on_opensuse.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,8 @@ git clone --depth 1 https://github.com/openstreetmap/mod_tile.git .
cd /tmp/mod_tile_build
cmake -B . -S /tmp/mod_tile_src \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
-DCMAKE_INSTALL_PREFIX:PATH=/ \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=run \
-DENABLE_TESTS:BOOL=ON
cmake --build .
ctest
Expand Down
6 changes: 2 additions & 4 deletions docs/build/building_on_ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ git clone --depth 1 https://github.com/openstreetmap/mod_tile.git .
cd /tmp/mod_tile_build
cmake -B . -S /tmp/mod_tile_src \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
-DCMAKE_INSTALL_PREFIX:PATH=/ \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=run \
-DENABLE_TESTS:BOOL=ON
cmake --build .
ctest
Expand Down

0 comments on commit df10137

Please sign in to comment.