Skip to content

Commit

Permalink
Remove CentOS Stream 8 & CentOS 7 for CI and documentation (#438)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
hummeltech authored Jun 4, 2024
1 parent 1ad4165 commit 039a30e
Show file tree
Hide file tree
Showing 26 changed files with 75 additions and 397 deletions.
6 changes: 3 additions & 3 deletions .github/actions/cmake/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ runs:
cmake -B build -S . \
-LA \
-DCMAKE_BUILD_TYPE:STRING=${BUILD_TYPE:-Release} \
-DCMAKE_INSTALL_LOCALSTATEDIR=${INSTALL_LOCALSTATEDIR:-/var} \
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=${INSTALL_LOCALSTATEDIR:-/var} \
-DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX:-/usr} \
-DCMAKE_INSTALL_RUNSTATEDIR=${INSTALL_RUNSTATEDIR:-/run} \
-DCMAKE_INSTALL_SYSCONFDIR=${INSTALL_SYSCONFDIR:-/etc} \
-DCMAKE_INSTALL_RUNSTATEDIR:PATH=${INSTALL_RUNSTATEDIR:-/run} \
-DCMAKE_INSTALL_SYSCONFDIR:PATH=${INSTALL_SYSCONFDIR:-/etc} \
-DENABLE_TESTS:BOOL=ON
shell: bash --noprofile --norc -euxo pipefail {0}

Expand Down
9 changes: 2 additions & 7 deletions .github/actions/dependencies/install/yum/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,10 @@ runs:
shell: bash --noprofile --norc -euxo pipefail {0}
if: startsWith(matrix.image, 'quay.io/centos/centos:stream')

- name: Enable PowerTools repository (CentOS Stream 8)
run: dnf config-manager --set-enabled powertools
shell: bash --noprofile --norc -euxo pipefail {0}
if: matrix.image == 'quay.io/centos/centos:stream8'

- name: Enable CRB repository (CentOS Stream 9)
- name: Enable CRB repository (CentOS Stream)
run: dnf config-manager --set-enabled crb
shell: bash --noprofile --norc -euxo pipefail {0}
if: matrix.image == 'quay.io/centos/centos:stream9'
if: startsWith(matrix.image, 'quay.io/centos/centos:stream')

- name: Install dependency package(s)
run: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
- "fedora:39"
- "fedora:40"
- "opensuse/leap:15"
- "quay.io/centos/centos:stream8"
- "quay.io/centos/centos:stream9"
- "ubuntu:22.04"
on_default_branch:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/docker-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
matrix:
service-name:
- archlinux
- centos-7
- centos-stream-8
- centos-stream-9
- debian-11
- debian-12
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ project(mod_tile

set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD 11 CACHE STRING "Sets the C++ standard.")
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(THREADS_PREFER_PTHREAD_FLAG ON)

Expand Down
1 change: 0 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ We prepared instructions for you on how to build the software on the following
distributions:

* `Arch Linux </docs/build/building_on_arch_linux.md>`__
* `CentOS </docs/build/building_on_centos.md>`__
* `CentOS Stream </docs/build/building_on_centos_stream.md>`__
* `Debian </docs/build/building_on_debian.md>`__
* `Fedora </docs/build/building_on_fedora.md>`__
Expand Down
2 changes: 0 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ For your convenience, we have provided a Docker-based building and testing metho
### The following distributions are currently supported:

- archlinux _(Arch Linux)_ [[Dockerfile](/docker/archlinux/Dockerfile)]
- centos-7 _(CentOS 7)_ [[Dockerfile](/docker/centos/7/Dockerfile)]
- centos-stream-8 _(CentOS Stream 8)_ [[Dockerfile](/docker/centos/stream/Dockerfile)]
- centos-stream-9 _(CentOS Stream 9)_ [[Dockerfile](/docker/centos/stream/Dockerfile)]
- debian-10 _(Debian 10)_ [[Dockerfile](/docker/debian/Dockerfile)]
- debian-11 _(Debian 11)_ [[Dockerfile](/docker/debian/Dockerfile)]
Expand Down
9 changes: 5 additions & 4 deletions docker/archlinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ 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=/var \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_RUNSTATEDIR=/run \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-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 \
-DENABLE_TESTS:BOOL=ON && \
cmake --build .
RUN export CTEST_PARALLEL_LEVEL=$(nproc) && \
Expand Down
178 changes: 0 additions & 178 deletions docker/centos/7/Dockerfile

This file was deleted.

21 changes: 8 additions & 13 deletions docker/centos/stream/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,10 @@ RUN --mount=id=centos:stream${centos_stream_version}-mapnik:${mapnik_version},ta
if [ ! -f SConstruct ]; then \
curl --silent --location https://github.com/mapnik/mapnik/releases/download/v${mapnik_version}/mapnik-v${mapnik_version}.tar.bz2 \
| tar --extract --bzip2 --strip-components=1 --file=-; \
if [ "${centos_stream_version}" = "9" ]; then \
curl --silent --location https://github.com/mapnik/mapnik/commit/8944e81367d2b3b91a41e24116e1813c01491e5d.patch \
| patch -Np1; \
curl --silent --location https://github.com/mapnik/mapnik/commit/83779b7b6bdd229740b1b5e12a4a8fe27114cb7d.patch \
| patch -F3 -Np1; \
fi \
fi; \
if [ "${centos_stream_version}" = "8" ]; then \
export CUSTOM_DEFINES="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1"; \
curl --silent --location https://github.com/mapnik/mapnik/commit/8944e81367d2b3b91a41e24116e1813c01491e5d.patch \
| patch -Np1; \
curl --silent --location https://github.com/mapnik/mapnik/commit/83779b7b6bdd229740b1b5e12a4a8fe27114cb7d.patch \
| patch -F3 -Np1; \
fi; \
bash configure \
CPP_TESTS=False \
Expand Down Expand Up @@ -132,10 +127,10 @@ 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=/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 .
RUN export CTEST_PARALLEL_LEVEL=$(nproc) && \
Expand Down
13 changes: 4 additions & 9 deletions docker/centos/stream/Dockerfile.autotools
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,10 @@ RUN --mount=id=centos:stream${centos_stream_version}-mapnik:${mapnik_version},ta
if [ ! -f SConstruct ]; then \
curl --silent --location https://github.com/mapnik/mapnik/releases/download/v${mapnik_version}/mapnik-v${mapnik_version}.tar.bz2 \
| tar --extract --bzip2 --strip-components=1 --file=-; \
if [ "${centos_stream_version}" = "9" ]; then \
curl --silent --location https://github.com/mapnik/mapnik/commit/8944e81367d2b3b91a41e24116e1813c01491e5d.patch \
| patch -Np1; \
curl --silent --location https://github.com/mapnik/mapnik/commit/83779b7b6bdd229740b1b5e12a4a8fe27114cb7d.patch \
| patch -F3 -Np1; \
fi \
fi; \
if [ "${centos_stream_version}" = "8" ]; then \
export CUSTOM_DEFINES="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1"; \
curl --silent --location https://github.com/mapnik/mapnik/commit/8944e81367d2b3b91a41e24116e1813c01491e5d.patch \
| patch -Np1; \
curl --silent --location https://github.com/mapnik/mapnik/commit/83779b7b6bdd229740b1b5e12a4a8fe27114cb7d.patch \
| patch -F3 -Np1; \
fi; \
bash configure \
CPP_TESTS=False \
Expand Down
8 changes: 4 additions & 4 deletions docker/centos/stream/Dockerfile.mapnik-latest
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ RUN export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) && \
cmake -B . -S /tmp/mod_tile_src \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES:PATH=/usr/include/boost1.78 \
-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 .
RUN export CTEST_PARALLEL_LEVEL=$(nproc) && \
Expand Down
8 changes: 4 additions & 4 deletions docker/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ 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=/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 .
RUN export CTEST_PARALLEL_LEVEL=$(nproc) && \
Expand Down
22 changes: 0 additions & 22 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,6 @@ services:
- styles:/opt/styles
- tiles:/var/cache/renderd/tiles
- ./full-entrypoint.sh:/entrypoint.sh:ro
centos-7:
<<: *service_defaults
build:
<<: *build_defaults
dockerfile: docker/centos/7/Dockerfile
ulimits:
nofile: 40000
centos-stream-8:
<<: *service_defaults
build:
<<: *build_defaults_centos_stream
args:
centos_stream_version: "8"
extra_repository: powertools
centos-stream-8-autotools:
<<: *service_defaults
build:
<<: *build_defaults_centos_stream
args:
centos_stream_version: "8"
extra_repository: powertools
dockerfile: docker/centos/stream/Dockerfile.autotools
centos-stream-9:
<<: *service_defaults
build:
Expand Down
8 changes: 4 additions & 4 deletions docker/fedora/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ 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=/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 .
RUN export CTEST_PARALLEL_LEVEL=$(nproc) && \
Expand Down
Loading

0 comments on commit 039a30e

Please sign in to comment.