From 3b5cbd5b255c41e9554600adac5ba833bdbb14ac Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Wed, 3 Jul 2024 17:04:27 +0200 Subject: [PATCH] Drop CentOS 7 --- .github/workflows/ci.yml | 8 ----- centos-7/Dockerfile | 63 ---------------------------------------- 2 files changed, 71 deletions(-) delete mode 100644 centos-7/Dockerfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 14e234b..f42e24c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,14 +30,6 @@ jobs: packages: write contents: read - centos_7: - uses: ./.github/workflows/docker_build.yml - with: - name: "centos-7" - permissions: - packages: write - contents: read - centos_8: uses: ./.github/workflows/docker_build.yml with: diff --git a/centos-7/Dockerfile b/centos-7/Dockerfile deleted file mode 100644 index efaf794..0000000 --- a/centos-7/Dockerfile +++ /dev/null @@ -1,63 +0,0 @@ -# Use oraclelinux:7-slim as base image -FROM oraclelinux:7-slim - -# Configure repositories -RUN set -x; \ - printf "[ol7_software_collections]\nname=Software Collection Library release 3.0 packages for Oracle Linux 7 (\$basearch)\nbaseurl=https://yum.oracle.com/repo/OracleLinux/OL7/SoftwareCollections/\$basearch/\ngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle\ngpgcheck=1\nenabled=1\n" > /etc/yum.repos.d/sc.repo && \ - printf "[ol7_epel]\nname=Oracle Linux \$releasever EPEL (\$basearch)\nbaseurl=https://yum.oracle.com/repo/OracleLinux/OL7/developer_EPEL/\$basearch/\ngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle\ngpgcheck=1\nenabled=1\n" > /etc/yum.repos.d/epel.repo && \ - yum-config-manager --enable ol7_optional_latest ol7_addons - -# Upgrade minimal packages and install dependencies -RUN yum -qy --setopt install_weak_deps=False upgrade-minimal && \ - yum -y --setopt install_weak_deps=False install clang compiler-rt gcc gcc-c++ cmake3 libarchive-devel make pkgconf-pkg-config \ - perl ragel file-devel glib2-devel libicu-devel openssl-devel sqlite-devel zlib-devel \ - clang-devel llvm-devel libsodium-devel git rpm-build openblas-devel libunwind-devel lapack lapack-devel blas-devel blas pcre2-devel devtoolset-10-llvm-devel devtoolset-10-clang-devel devtoolset-10-libasan-devel sudo patch - -# Install additional dependencies -RUN yum -qy install devtoolset-10-gcc-c++ python3-devel boost-devel git cmake3 wget - -# Download, build, and install Ragel -RUN wget -q https://www.colm.net/files/ragel/ragel-6.10.tar.gz && \ - tar xvf ragel-6.10.tar.gz && \ - (cd ragel-6.10 && ./configure --prefix=/usr && make -j$(nproc) && make install) && \ - rm -fr ragel-6.10 - -# Download and extract Boost -RUN wget -q https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz -O /boost.tar.gz && \ - tar -xf /boost.tar.gz - -# Clone, build, and install vectorscan or hyperscan depending on the architecture -RUN rpmArch="$(rpm --eval '%{_arch}')" && \ - case "$rpmArch" in \ - aarch64) \ - git clone https://github.com/VectorCamp/vectorscan --depth 1 --branch vectorscan/5.4.9 /vectorscan-src \ - ;; \ - *) \ - git clone https://github.com/intel/hyperscan/ --depth 1 --branch v5.4.1 /vectorscan-src \ - ;; \ - esac && \ - (source /opt/rh/devtoolset-10/enable ; cd /vectorscan-src ; mkdir build ; cd build ; cmake3 .. -DCMAKE_INSTALL_PREFIX=/vectorscan -DCMAKE_BUILD_TYPE=Release -DFAT_RUNTIME=ON -DCMAKE_C_FLAGS="-fpic -fPIC" -DCMAKE_CXX_FLAGS="-fPIC -fpic" -DPCRE_SUPPORT_LIBBZ2=OFF -DBOOST_ROOT=/boost_1_76_0; make -j$(nproc) ; make install) && \ - rm -fr /vectorscan-src/ - - -# Install jemalloc-devel for x86_64 architecture -RUN rpmArch="$(rpm --eval '%{_arch}')" && \ - case "$rpmArch" in \ - x86_64) \ - yum -qy install jemalloc-devel \ - ;; \ - *) \ - ;; \ - esac - -# Install fasttext -RUN rm -fr /fasttext-src/ ; git clone https://github.com/rspamd/fastText.git --depth 1 /fasttext-src && \ - (source /opt/rh/devtoolset-10/enable ; cd /fasttext-src ; mkdir build ; cd build ; cmake3 .. -DCMAKE_INSTALL_PREFIX=/fasttext -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-fpic -fPIC" -DCMAKE_CXX_FLAGS="-fPIC -fpic"; make -j4 ; make install) ; \ - mv -f /fasttext/lib/libfasttext_pic.a /fasttext/lib/libfasttext.a ; \ - rm -f /fasttext/lib/*.so ; \ - rm -fr /fasttext-src/ - -# Clean up Boost files and yum cache -RUN rm -fr /boost.tar.gz && \ - rm -fr /boost_1_76_0 && \ - yum -y clean all || true