Skip to content

Commit

Permalink
Centos7 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaël Guiral committed Aug 19, 2019
1 parent 4c5a2e0 commit f30a134
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 36 deletions.
28 changes: 0 additions & 28 deletions tools/docker/centos6/Dockerfile

This file was deleted.

6 changes: 0 additions & 6 deletions tools/docker/centos6/build.sh

This file was deleted.

29 changes: 29 additions & 0 deletions tools/docker/centos7/Dockerfile
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*
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
6 changes: 6 additions & 0 deletions tools/docker/centos7/build.sh
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

0 comments on commit f30a134

Please sign in to comment.