From 26c2ce5ca49c2d9ac5b0607b3448d97143bca374 Mon Sep 17 00:00:00 2001 From: Dibyendu Majumdar Date: Sun, 12 Jan 2020 18:59:17 +0000 Subject: [PATCH] issue #11 Add Dockerfile for Centos --- Dockerfile.centos | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Dockerfile.centos diff --git a/Dockerfile.centos b/Dockerfile.centos new file mode 100644 index 0000000..bf4a675 --- /dev/null +++ b/Dockerfile.centos @@ -0,0 +1,25 @@ +FROM centos:7 + +RUN set -x && \ + yum -y update && \ + yum -y install epel-release && \ + yum -y install readline-devel openblas-devel openssl-devel lapack-devel libuv-devel libgomp && \ + yum clean all + + +RUN set -x && \ + yum -y install git && \ + mkdir -p ${HOME}/sources && \ + cd ${HOME}/sources && \ + git clone https://github.com/dibyendumajumdar/Suravi.git && \ + cd ${HOME}/sources/Suravi && \ + git submodule update --init --recursive && \ + yum -y install cmake3 && \ + yum -y install centos-release-scl && \ + yum -y install devtoolset-8-gcc devtoolset-8-gcc-c++ make && \ + cd ${HOME}/sources/Suravi && \ + scl enable devtoolset-8 -- bash build/centos_build.sh && \ + rm -rf ${HOME}/sources/ && \ + yum -y remove devtoolset-8-gcc devtoolset-8-gcc-c++ make && \ + yum -y remove cmake3 git && \ + yum clean all