Skip to content

Commit

Permalink
issue #11 Add Dockerfile for Centos
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyendumajumdar committed Jan 12, 2020
1 parent 33df720 commit 26c2ce5
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Dockerfile.centos
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 26c2ce5

Please sign in to comment.