-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (32 loc) · 1.8 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
FROM biocorecrg/debian-perlbrew-pyenv3-java:buster
MAINTAINER Toni Hermoso Pulido <[email protected]>
#ARG KRAKEN_VERSION= To have
ARG BRACKEN_VERSION=2.6.2
ARG BLAST_VERSION=2.12.0
# Upgrade system
RUN set -x ; apt-get update && apt-get -y upgrade
# Additional software
RUN set -x ; apt-get install -y rsync
# Adding perl module
RUN cpanm List::MoreUtils Encode
# Upgrade pip
RUN pip install --upgrade pip
# Adding kraken2
RUN cd /tmp; git clone https://github.com/DerrickWood/kraken2.git
#RUN cd /tmp/kraken2; git checkout ${KRAKEN_VERSION} # To consider
RUN cd /tmp/kraken2; bash ./install_kraken2.sh /usr/local/kraken2
RUN cd /usr/local/bin; ln -s /usr/local/kraken2/kraken2 . ; ln -s /usr/local/kraken2/kraken2-build . ; ln -s /usr/local/kraken2/kraken2-inspect .
RUN rm -rf /tmp/kraken2
# Adding Braken
RUN cd /tmp; curl --fail --silent --show-error --location --remote-name https://github.com/jenniferlu717/Bracken/archive/v${BRACKEN_VERSION}.tar.gz
RUN cd /tmp; tar zxf v${BRACKEN_VERSION}.tar.gz; cd Bracken-${BRACKEN_VERSION}; bash install_bracken.sh
RUN mkdir -p /usr/local/bracken; cd /usr/local/bracken; cp -prf /tmp/Bracken-${BRACKEN_VERSION}/src .; cp -prf /tmp/Bracken-${BRACKEN_VERSION}/analysis_scripts .; cp /tmp/Bracken-${BRACKEN_VERSION}/bracken* .
RUN cd /usr/local/bin; ln -s /usr/local/bracken/bracken* .
RUN rm -rf /tmp/Bracken*
# Adding BLAST
RUN cd /usr/local; curl --fail --silent --show-error --location --remote-name ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/${BLAST_VERSION}/ncbi-blast-${BLAST_VERSION}+-x64-linux.tar.gz
RUN cd /usr/local; tar zxf ncbi-blast-${BLAST_VERSION}+-x64-linux.tar.gz; rm ncbi-blast-${BLAST_VERSION}+-x64-linux.tar.gz
RUN cd /usr/local/bin; ln -s /usr/local/ncbi-blast-${BLAST_VERSION}+/bin/* .
# Clean cache
RUN apt-get clean
RUN set -x; rm -rf /var/lib/apt/lists/*