-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michaël Guiral
committed
Aug 19, 2019
1 parent
4c5a2e0
commit f30a134
Showing
5 changed files
with
37 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
FROM centos:7 | ||
|
||
#Install dependencies | ||
RUN yum install -y wget cmake tar gcc gcc-c++ pcre-devel python-devel make zlib-devel bzip2-devel | ||
|
||
#Install boost | ||
RUN cd /opt/ && \ | ||
wget https://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz && \ | ||
tar xzf boost_1_55_0.tar.gz && \ | ||
cd boost_1_55_0 && \ | ||
./bootstrap.sh && \ | ||
./b2 install --with=all && \ | ||
rm -rf boost_1_55_0.tar.gz && \ | ||
rm -rf boost_1_55_0.tar | ||
|
||
|
||
|
||
#Install JAVA | ||
RUN yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel | ||
|
||
#Install Swig 2.0.11 | ||
|
||
RUN cd /opt/ && \ | ||
wget -O swig-2.0.11.tar.gz https://sourceforge.net/projects/swig/files/swig/swig-2.0.11/swig-2.0.11.tar.gz/download && \ | ||
tar xzf swig-2.0.11.tar.gz && \ | ||
cd swig-2.0.11 && \ | ||
./configure && \ | ||
make && make install && \ | ||
cd /opt/ && rm -rf swig-2.0.11* |
4 changes: 2 additions & 2 deletions
4
tools/docker/centos6/README.md → tools/docker/centos7/README.md
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
### How to compile with docker | ||
```Shell | ||
docker build -t sequenceparser:centos6 . | ||
docker run -v <path to sequenceparser>:/opt/sequenceparser sequenceparser:centos6 /opt/sequenceparser/docker/centos6/build.sh | ||
docker build -t sequenceparser:centos7 . | ||
docker run -v <path to sequenceparser>:/opt/sequenceparser sequenceparser:centos7 /opt/sequenceparser/tools/docker/centos7/build.sh | ||
``` | ||
The compiled libraries is installed into centos6 folder at root folder of sequenceparser repository |
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 @@ | ||
#!/bin/bash | ||
|
||
cd /opt/sequenceparser | ||
cmake . -DCMAKE_INSTALL_PREFIX=/opt/sequenceparser/install -DBOOST_ROOT=/usr/local/include/boost/ | ||
make | ||
make install |