diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index ad71253..0662455 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -28,6 +28,8 @@ jobs: file: "u23.10-dev.Dockerfile" - container: "fedora:30" file: "fedora30-dev.Dockerfile" + - container: "centos-dev:7" + file: "centos7-dev.Dockerfile" steps: - name: checkout uses: actions/checkout@v3 diff --git a/centos7-dev.Dockerfile b/centos7-dev.Dockerfile new file mode 100644 index 0000000..98e7939 --- /dev/null +++ b/centos7-dev.Dockerfile @@ -0,0 +1,23 @@ +# syntax=docker/dockerfile:1 +FROM centos:7.9.2009 + +COPY ./install_boost.sh /tmp/ + +RUN yum update -y && yum install -y automake libtool git epel-release make \ + autoconf-archive patch wget bzip2 \ + zlib-devel centos-release-scl + +RUN yum install -y devtoolset-11-gcc-c++ cmake3 ninja-build \ + libzstd-static && yum clean all && rm -rf /var/cache/yum + +RUN echo "source /opt/rh/devtoolset-11/enable" >> /etc/bashrc +SHELL ["/bin/bash", "--login", "-c"] + +RUN wget --no-check-certificate https://ftp.openssl.org/source/openssl-1.1.1w.tar.gz && \ + tar -xzvf openssl-1.1.1w.tar.gz && \ + cd openssl-1.1.1w && \ + ./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib no-shared zlib-dynamic && \ + make -j $(nproc) && make install && \ + wget --no-check-certificate https://ftp.gnu.org/gnu/bison/bison-3.7.3.tar.gz && \ + tar -xvzf bison-3.7.3.tar.gz && cd bison-3.7.3 && \ + ./configure && make -j$(nproc) && make install