forked from luntergroup/octopus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
64 lines (58 loc) · 1.47 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM ubuntu:latest
# Get all apt dependencies
RUN apt-get -y update
RUN apt-get -y install software-properties-common
RUN apt-get install -y --no-install-recommends apt-utils
RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test
RUN apt-get -y install \
gcc-8 g++-8 \
build-essential \
make \
wget \
autotools-dev \
libicu-dev \
git \
curl \
libcurl4-openssl-dev \
pkg-config \
autoconf \
libbz2-dev \
liblzma-dev \
zlib1g-dev \
openssl \
libssl-dev \
libcrypto++-dev
ENV CC gcc-8
ENV CXX g++-8
# Install CMake
WORKDIR /tmp
RUN wget https://cmake.org/files/v3.11/cmake-3.11.4.tar.gz
RUN tar -xzvf cmake-3.11.4.tar.gz
WORKDIR /tmp/cmake-3.11.4
RUN ./bootstrap --prefix=/usr/local
RUN make -j2
RUN make install
# Install Boost
WORKDIR /tmp
RUN wget -O boost_1_68_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.68.0/boost_1_68_0.tar.gz/download
RUN tar xzvf boost_1_68_0.tar.gz
WORKDIR /tmp/boost_1_68_0
RUN ./bootstrap.sh --prefix=/usr/local --without-libraries=python,mpi
RUN ./b2 -j2 toolset=gcc-8 cxxflags="-std=c++14"
RUN ./b2 install
# Install htslib
WORKDIR /tmp
RUN git clone -b master https://github.com/samtools/htslib.git
WORKDIR /tmp/htslib
RUN autoheader
RUN autoconf
RUN ./configure
RUN make -j2
RUN make install
# Install Octopus
WORKDIR /tmp
RUN git clone -b develop https://github.com/luntergroup/octopus.git
WORKDIR /tmp/octopus
RUN ./scripts/install.py --root --threads=2
RUN ldconfig
WORKDIR /home