forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (43 loc) · 1.45 KB
/
Dockerfile
File metadata and controls
51 lines (43 loc) · 1.45 KB
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
# base image
FROM ubuntu:xenial
# metadata
LABEL base.image="ubuntu:xenial"
LABEL container.version="1.1"
LABEL software="Kraken"
LABEL software.version="1.0"
LABEL description="Taxonomic sequence classifier"
LABEL website="https://github.com/DerrickWood/kraken"
LABEL license="https://github.com/DerrickWood/kraken/blob/master/LICENSE"
LABEL maintainer="Curtis Kapsak"
LABEL maintainer.email="pjx8@cdc.gov"
# install dependencies
RUN apt-get update && apt-get -y install \
wget \
zlib1g-dev \
make \
g++ \
cpanminus \
rsync
# DL Jellyfish, unpack, and install
RUN wget https://github.com/gmarcais/Jellyfish/releases/download/v1.1.12/jellyfish-1.1.12.tar.gz && \
tar -zxf jellyfish-1.1.12.tar.gz && rm -rf jellyfish-1.1.12.tar.gz
RUN cd jellyfish-1.1.12 && ./configure --prefix=/opt/ && make -j 4 && make install
# DL Kraken v1.0, unpack, and install
RUN wget https://github.com/DerrickWood/kraken/archive/v1.0.tar.gz && \
tar -xzf v1.0.tar.gz && \
rm -rf v1.0.tar.gz && \
cd kraken-1.0 && \
mkdir /opt/kraken && \
./install_kraken.sh /opt/kraken/ && \
mkdir /data
ENV PATH="$PATH:/opt/kraken:/opt/bin" \
LC_ALL=C
WORKDIR /data
# this perl module and rsync required for kraken-build
RUN cpanm Getopt::Std
# DL MiniKraken database
RUN mkdir /kraken-database && \
cd /kraken-database && \
wget https://ccb.jhu.edu/software/kraken/dl/minikraken_20171019_4GB.tgz && \
tar -zxf minikraken_20171019_4GB.tgz && \
rm -rf minikraken_20171019_4GB.tgz