Skip to content

Commit

Permalink
Merge pull request #6 from romange/AddCentos
Browse files Browse the repository at this point in the history
Add centos7-dev image

Signed-off-by: Roman Gershman <[email protected]>
  • Loading branch information
romange committed Feb 23, 2024
2 parents 20feaab + 49fd6e1 commit e4ff0ba
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions centos7-dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e4ff0ba

Please sign in to comment.