From 49fd6e109d0213d034dca7bfc1636bc6eec9ff81 Mon Sep 17 00:00:00 2001 From: Roman Gershman Date: Fri, 23 Feb 2024 21:53:51 +0200 Subject: [PATCH] Add centos7-dev image Signed-off-by: Roman Gershman --- .github/workflows/docker-image.yml | 2 ++ centos7-dev.Dockerfile | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 centos7-dev.Dockerfile 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..04b18e3 --- /dev/null +++ b/centos7-dev.Dockerfile @@ -0,0 +1,25 @@ +# 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 +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 && /tmp/install_boost.sh && \ + 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 + +# export PATH=/usr/local/openssl/bin:\$PATH && \ +# export LD_LIBRARY_PATH=/usr/local/openssl/lib:\$LD_LIBRARY_PATH \ No newline at end of file