This repository has been archived by the owner on Jan 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/abk-openroad/RePlAce
* 'master' of https://github.com/abk-openroad/RePlAce: Update README.md Update README.md fix command errors Add Docker section to the README first version of a Dockerized RePlAce
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.gitignore | ||
.gitmodules | ||
Dockerfile | ||
README.md | ||
doc | ||
prerequisite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM centos:7 | ||
LABEL maintainer="Abdelrahman Hosny <[email protected]>" | ||
|
||
# install gcc 7 | ||
RUN yum -y install centos-release-scl && \ | ||
yum -y install devtoolset-7 devtoolset-7-libatomic-devel | ||
ENV CC=/opt/rh/devtoolset-7/root/usr/bin/gcc \ | ||
CPP=/opt/rh/devtoolset-7/root/usr/bin/cpp \ | ||
CXX=/opt/rh/devtoolset-7/root/usr/bin/g++ \ | ||
PATH=/opt/rh/devtoolset-7/root/usr/bin:$PATH | ||
|
||
# install dependencies | ||
RUN yum update -y && \ | ||
yum install -y wget libstdc++-devel libstdc++-static libX11-devel \ | ||
boost-devel zlib-devel tcl-devel autoconf automake swig flex libtool \ | ||
libtool-ltdl gmp-devel mpfr-devel libmpc-devel bison byacc ctags \ | ||
ImageMagick ImageMagick-devel | ||
|
||
# install Intel MKL and IPP | ||
RUN yum-config-manager --add-repo https://yum.repos.intel.com/setup/intelproducts.repo && \ | ||
rpm --import https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB && \ | ||
yum install -y intel-mkl-2018.2-046 intel-ipp-2018.4-057 | ||
|
||
# add source code | ||
COPY . RePlAce | ||
|
||
# install RePlAce | ||
RUN cd RePlAce && \ | ||
make clean && \ | ||
make && \ | ||
make install | ||
|
||
# test installation | ||
RUN cd RePlAce/test && \ | ||
./run.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters