From fe01b2937f615acb9a147c022da45b6852cd476f Mon Sep 17 00:00:00 2001 From: Giovanni Bussi Date: Tue, 3 Sep 2024 17:40:41 +0200 Subject: [PATCH] removed unsupported centos7 (past EOL) --- .github/workflows/ci.yml | 9 -------- docker/Makefile | 5 +---- docker/centos7 | 46 ---------------------------------------- 3 files changed, 1 insertion(+), 59 deletions(-) delete mode 100644 docker/centos7 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3ea0eaa40..995099277e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -218,15 +218,6 @@ jobs: make -C src/lib/ dirslinks make codecheck - # We test on centos7 to make sure we have compatibility with older compilers (gcc 4.8) - centos7: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - name: Build and run tests - run: | - make -C docker centos7 - # We test on fedora37 to make sure we have compatibility with newer compilers (gcc 12) fedora37: runs-on: ubuntu-20.04 diff --git a/docker/Makefile b/docker/Makefile index b52bafc1d9..e974fd727a 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -1,12 +1,9 @@ -.PHONY: ubuntu plumed2.tgz clean centos7 fedora37 rocky8 +.PHONY: ubuntu plumed2.tgz clean fedora37 rocky8 ubuntu: plumed2.tgz docker build --shm-size 1024M -t plumed . -centos7: plumed2.tgz - docker build --shm-size 1024M -t plumed -f centos7 . - fedora37: plumed2.tgz docker build --shm-size 1024M -t plumed -f fedora37 . diff --git a/docker/centos7 b/docker/centos7 deleted file mode 100644 index 0f63443eb6..0000000000 --- a/docker/centos7 +++ /dev/null @@ -1,46 +0,0 @@ -FROM centos:7 - -# NOTE: numpy==1.19 is the last version compatible with python 3.6 -# NOTE: pillow==8.4.0 leads to an error while installing on centos7 -# NOTE: gsd 3 does not compile on centos7 -RUN yum -y update \ - && yum -y group install "Development Tools" \ - && yum -y install environment-modules gawk vim wget \ - lapack-devel blas-devel zlib-devel gsl-devel fftw-devel openmpi-devel \ - python3 python3-devel python3-pip \ - && pip3 install pillow==8.3.2 \ - && pip3 install numpy==1.19 \ - && pip3 install "cython<3" numpy pandas mdtraj \ - && pip3 install "gsd<3" \ - && pip3 install MDAnalysis==1.0.0 - -RUN useradd -ms /bin/bash plumed -USER plumed -WORKDIR /home/plumed - -# import plumed code. -# assumes a file plumed2.tgz is present in the Dockerfile directory -COPY plumed2.tgz /home/plumed - -# build and test plumed (no install) -RUN . /etc/bashrc \ - && module load mpi \ - && export OMPI_MCA_btl_base_warn_component_unused=0 \ - && export OMPI_MCA_btl_base_verbose=0 \ - && export OMPI_MCA_plm=isolated \ - && export OMPI_MCA_btl_vader_single_copy_mechanism=none \ - && export OMPI_MCA_rmaps_base_oversubscribe=yes \ - && export PATH=$HOME/opt/bin:$PATH \ - && export CPATH=$HOME/opt/include:$CPATH \ - && export INCLUDE=$HOME/opt/include:$INCLUDE \ - && export LIBRARY_PATH=$HOME/opt/lib:$LIBRARY_PATH \ - && export LD_LIBRARY_PATH=$HOME/opt/lib:$LD_LIBRARY_PATH \ - && tar xzf plumed2.tgz \ - && cd plumed2 \ - && export PYTHONPATH=$PWD/python:$PYTHONPATH \ - && export PYTHON_BIN=python3 \ - && .ci/install.boost release \ - && ./configure --enable-modules=all --enable-boost_serialization \ - && make -j 4 \ - && make check -