forked from droe-nmdp/kpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (41 loc) · 1.6 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
FROM ubuntu:latest
MAINTAINER Dave Roe <droe@nmdp.org>
# apt stuff
RUN apt-get update \
&& apt-get install -qyy curl git make vim cmake \
gcc g++ unzip subversion gzip openjdk-8-jdk openjdk-8-doc groovy wget \
zlib1g-dev gnuplot lynx maven \
bzip2 libbz2-dev liblzma-dev libncurses5-dev libncursesw5-dev \
&& apt-get clean
# install stuff
ENV TMPDIR /tmp
RUN cd /opt \
&& git clone https://github.com/droe-nmdp/kpi.git \
&& mkdir -p /opt/kpi/raw /opt/bin \
&& cd /opt/bin \
&& wget -qO- http://get.nextflow.io | bash \
&& sed -i s/"curl -fsSL"/"curl -fsSLk"/ /opt/bin/nextflow \
&& chmod 755 /opt/bin/nextflow \
&& /opt/bin/nextflow \
&& wget https://github.com/refresh-bio/KMC/releases/download/v3.0.0/KMC3.linux.tar.gz \
&& tar -zxvf KMC3.linux.tar.gz \
&& rm -f KMC3.linux.tar.gz \
&& mkdir -p /opt/jars \
&& cd /opt/jars \
&& wget http://www.apache.org/dist/commons/math/binaries/commons-math3-3.6.1-bin.tar.gz \
&& tar -zxvf commons-math3-3.6.1-bin.tar.gz \
&& rm -f /opt/jars/commons-math3-3.6.1-bin.tar.gz
# google guava
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
RUN cd /opt \
&& git clone https://github.com/google/guava.git \
&& cd guava/guava \
&& mvn install
# env vars
ENV NXF_OPTS "-Xms4G -Xmx20G"
ENV LD_LIBRARY_PATH /opt/lib:$LD_LIBRARY_PATH
# kpi source
RUN mkdir -p /opt/kpi/input /opt/kpi/output /opt/kpi/src
ENV PATH /opt/bin:/opt/kpi:/opt/kpi/src:/opt/bbmap:/opt/canu/Linux-amd64/bin:$PATH
ENV CLASSPATH /opt/guava/guava/target/guava-HEAD-jre-SNAPSHOT.jar:/opt/jars/commons-math3-3.6.1/commons-math3-3.6.1.jar:$CLASSPATH
CMD ["/opt/kpi/main.nf"]