mirror of
https://github.com/openstreetmap/mod_tile.git
synced 2025-07-29 11:44:17 +00:00
Remove CentOS Stream 8 & CentOS 7 for CI and documentation (#438)
* Updates are no longer available for CentOS Stream 8 since the end of May 2024 * Updates will cease being available for CentOS 7 at the end of June 2024
This commit is contained in:
8
docs/build/building_on_arch_linux.md
vendored
8
docs/build/building_on_arch_linux.md
vendored
@ -41,10 +41,10 @@ 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=/var \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_RUNSTATEDIR=/run \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
||||
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
||||
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
|
||||
-DENABLE_TESTS:BOOL=ON
|
||||
cmake --build .
|
||||
ctest
|
||||
|
86
docs/build/building_on_centos.md
vendored
86
docs/build/building_on_centos.md
vendored
@ -1,86 +0,0 @@
|
||||
# Building on CentOS
|
||||
|
||||
This document provides users with step-by-step instructions on how to compile and use`mod_tile` and `renderd`.
|
||||
|
||||
Please see our [Continuous Integration script](/.github/workflows/build-and-test.yml) for more details.
|
||||
|
||||
A Docker-based building & testing setup pipeline is also available [here](/docker) for your convenience.
|
||||
|
||||
_CentOS does not provide a `mapnik`/`mapnik-devel` package, so it will first need to be built & installed, which is beyond the scope of this document, please visit the project's [installation document on GitHub](https://github.com/mapnik/mapnik/blob/master/INSTALL.md) or our [Continuous Integration script](/.github/actions/dependencies/build-and-install/mapnik/action.yml) for more information._
|
||||
|
||||
## CentOS 7
|
||||
|
||||
```shell
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Update installed packages
|
||||
sudo yum --assumeyes update
|
||||
|
||||
# Install build dependencies
|
||||
# (libmemcached-devel & librados2-devel are optional)
|
||||
sudo yum --assumeyes install epel-release centos-release-scl
|
||||
sudo yum --assumeyes --setopt=install_weak_deps=False install \
|
||||
boost169-devel \
|
||||
cairo-devel \
|
||||
cmake3 \
|
||||
devtoolset-9-gcc \
|
||||
devtoolset-9-gcc-c++ \
|
||||
gcc \
|
||||
gcc-c++ \
|
||||
gdal \
|
||||
git \
|
||||
glib2-devel \
|
||||
harfbuzz-devel \
|
||||
httpd-devel \
|
||||
iniparser-devel \
|
||||
libcurl-devel \
|
||||
libicu-devel \
|
||||
libjpeg \
|
||||
libmemcached-devel \
|
||||
librados2-devel \
|
||||
libtiff \
|
||||
libwebp \
|
||||
make \
|
||||
proj
|
||||
|
||||
# Download, Build, Test & Install `mod_tile`
|
||||
source /opt/rh/devtoolset-9/enable
|
||||
export CFLAGS="-I/usr/include/boost169"
|
||||
export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc)
|
||||
export CXXFLAGS="-I/usr/include/boost169"
|
||||
rm -rf /tmp/mod_tile_src /tmp/mod_tile_build
|
||||
mkdir /tmp/mod_tile_src /tmp/mod_tile_build
|
||||
cd /tmp/mod_tile_src
|
||||
git clone --depth 1 https://github.com/openstreetmap/mod_tile.git .
|
||||
cd /tmp/mod_tile_build
|
||||
cmake3 -B . -S /tmp/mod_tile_src \
|
||||
-DCMAKE_BUILD_TYPE:STRING=Release \
|
||||
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_RUNSTATEDIR=/run \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
||||
-DENABLE_TESTS:BOOL=ON
|
||||
cmake3 --build .
|
||||
ctest3
|
||||
sudo cmake --install . --strip
|
||||
|
||||
# Create /usr/share/renderd directory
|
||||
sudo mkdir --parents /usr/share/renderd
|
||||
|
||||
# Copy files of example map
|
||||
sudo cp -av /tmp/mod_tile_src/utils/example-map /usr/share/renderd/example-map
|
||||
|
||||
# Add configuration
|
||||
sudo cp -av /tmp/mod_tile_src/etc/apache2/renderd-example-map.conf /etc/httpd/conf.d/renderd-example-map.conf
|
||||
printf '\n[example-map]\nURI=/tiles/renderd-example\nXML=/usr/share/renderd/example-map/mapnik.xml\n' | sudo tee -a /etc/renderd.conf
|
||||
printf '\n[example-map-jpg]\nTYPE=jpg image/jpeg jpeg\nURI=/tiles/renderd-example-jpg\nXML=/usr/share/renderd/example-map/mapnik.xml\n' | sudo tee -a /etc/renderd.conf
|
||||
printf '\n[example-map-png256]\nTYPE=png image/png png256\nURI=/tiles/renderd-example-png256\nXML=/usr/share/renderd/example-map/mapnik.xml\n' | sudo tee -a /etc/renderd.conf
|
||||
printf '\n[example-map-png32]\nTYPE=png image/png png32\nURI=/tiles/renderd-example-png32\nXML=/usr/share/renderd/example-map/mapnik.xml\n' | sudo tee -a /etc/renderd.conf
|
||||
printf '\n[example-map-webp]\nTYPE=webp image/webp webp\nURI=/tiles/renderd-example-webp\nXML=/usr/share/renderd/example-map/mapnik.xml\n' | sudo tee -a /etc/renderd.conf
|
||||
|
||||
# Start services
|
||||
sudo httpd
|
||||
sudo renderd -f
|
||||
```
|
||||
|
||||
Then you can visit: `http://localhost:8081/renderd-example-map`
|
24
docs/build/building_on_centos_stream.md
vendored
24
docs/build/building_on_centos_stream.md
vendored
@ -8,18 +8,6 @@ A Docker-based building & testing setup pipeline is also available [here](/docke
|
||||
|
||||
_CentOS Stream does not provide a `mapnik`/`mapnik-devel` package, so it will first need to be built & installed, which is beyond the scope of this document, please visit the project's [installation document on GitHub](https://github.com/mapnik/mapnik/blob/master/INSTALL.md) or our [Continuous Integration script](/.github/actions/dependencies/build-and-install/mapnik/action.yml) for more information._
|
||||
|
||||
## CentOS Stream 8
|
||||
|
||||
```shell
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Update config-manager DNF plugin
|
||||
sudo dnf --assumeyes install "dnf-command(config-manager)"
|
||||
|
||||
# Enable PowerTools Repository
|
||||
sudo dnf config-manager --save --setopt=powertools.enabled=1
|
||||
```
|
||||
|
||||
## CentOS Stream 9
|
||||
|
||||
```shell
|
||||
@ -30,11 +18,7 @@ sudo dnf --assumeyes install "dnf-command(config-manager)"
|
||||
|
||||
# Enable CRB Repository
|
||||
sudo dnf config-manager --save --setopt=crb.enabled=1
|
||||
```
|
||||
|
||||
## CentOS Stream 8/9
|
||||
|
||||
```shell
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Update installed packages
|
||||
@ -74,10 +58,10 @@ 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=/var \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_RUNSTATEDIR=/run \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
||||
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
||||
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
|
||||
-DENABLE_TESTS:BOOL=ON
|
||||
cmake --build .
|
||||
ctest
|
||||
|
8
docs/build/building_on_debian.md
vendored
8
docs/build/building_on_debian.md
vendored
@ -42,10 +42,10 @@ 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=/var \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_RUNSTATEDIR=/run \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
||||
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
||||
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
|
||||
-DENABLE_TESTS:BOOL=ON
|
||||
cmake --build .
|
||||
ctest
|
||||
|
8
docs/build/building_on_fedora.md
vendored
8
docs/build/building_on_fedora.md
vendored
@ -39,10 +39,10 @@ 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=/var \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_RUNSTATEDIR=/run \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
||||
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
||||
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
|
||||
-DENABLE_TESTS:BOOL=ON
|
||||
cmake --build .
|
||||
ctest
|
||||
|
8
docs/build/building_on_freebsd.md
vendored
8
docs/build/building_on_freebsd.md
vendored
@ -44,10 +44,10 @@ 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=/var \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr/local \
|
||||
-DCMAKE_INSTALL_RUNSTATEDIR=/run \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
||||
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=/usr/local \
|
||||
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
|
||||
-DENABLE_TESTS:BOOL=ON
|
||||
cmake --build .
|
||||
ctest
|
||||
|
8
docs/build/building_on_macos.md
vendored
8
docs/build/building_on_macos.md
vendored
@ -40,10 +40,10 @@ 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=/var \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr/local \
|
||||
-DCMAKE_INSTALL_RUNSTATEDIR=/var/run \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
||||
-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 .
|
||||
ctest
|
||||
|
8
docs/build/building_on_opensuse.md
vendored
8
docs/build/building_on_opensuse.md
vendored
@ -58,10 +58,10 @@ 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=/var \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_RUNSTATEDIR=/run \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
||||
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
||||
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
|
||||
-DENABLE_TESTS:BOOL=ON
|
||||
cmake --build .
|
||||
ctest
|
||||
|
8
docs/build/building_on_ubuntu.md
vendored
8
docs/build/building_on_ubuntu.md
vendored
@ -42,10 +42,10 @@ 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=/var \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_RUNSTATEDIR=/run \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
||||
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
||||
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
|
||||
-DENABLE_TESTS:BOOL=ON
|
||||
cmake --build .
|
||||
ctest
|
||||
|
Reference in New Issue
Block a user