forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
71 lines (62 loc) · 2.38 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
65
66
67
68
69
70
71
FROM ubuntu:focal as app
ARG SAMTOOLSVER=1.16.1
ARG SAMBAMBAVER=0.8.2
ARG BBTOOLSVER=38.99
LABEL base.image="ubuntu:focal"
LABEL dockerfile.version="1"
LABEL software="BBTools"
LABEL software.version=${BBTOOLSVER}
LABEL description="A set of tools labeled as \"Bestus Bioinformaticus\""
LABEL website="https://jgi.doe.gov/data-and-tools/bbtools/bb-tools-user-guide/"
LABEL license="https://jgi.doe.gov/disclaimer/"
LABEL maintainer="Abigail Shockey"
LABEL maintainer.email="[email protected]"
LABEL maintainer2="Padraic Fanning"
LABEL maintainer2.email="faninnpm AT miamioh DOT edu"
RUN apt-get update && \
apt-get install --no-install-recommends -y \
autoconf \
automake \
build-essential \
bzip2 \
lbzip2 \
libbz2-dev \
libcurl4-openssl-dev \
liblzma-dev \
libncurses5-dev \
libssl-dev \
openjdk-8-jre-headless \
pbzip2 \
pigz \
wget \
zlib1g-dev && \
rm -rf /var/lib/apt/lists/* && \
apt-get autoclean
# download and install samtools
WORKDIR /opt
RUN wget --progress=dot:giga https://github.com/samtools/samtools/releases/download/${SAMTOOLSVER}/samtools-${SAMTOOLSVER}.tar.bz2 && \
tar -xjf samtools-${SAMTOOLSVER}.tar.bz2 && \
rm samtools-${SAMTOOLSVER}.tar.bz2
WORKDIR /opt/samtools-${SAMTOOLSVER}
RUN ./configure && \
make && \
make install
WORKDIR /opt
# download and install sambamba
RUN wget --progress=dot:giga https://github.com/biod/sambamba/releases/download/v${SAMBAMBAVER}/sambamba-${SAMBAMBAVER}-linux-amd64-static.gz && \
gzip -d sambamba-${SAMBAMBAVER}-linux-amd64-static.gz && \
mv /opt/sambamba-${SAMBAMBAVER}-linux-amd64-static /opt/sambamba && \
chmod +x /opt/sambamba && \
ln -s /opt/sambamba /usr/local/bin
# download and install bbtools
RUN wget --progress=dot:giga https://sourceforge.net/projects/bbmap/files/BBMap_${BBTOOLSVER}.tar.gz && \
tar -xzf BBMap_${BBTOOLSVER}.tar.gz && \
rm BBMap_${BBTOOLSVER}.tar.gz && \
ln -s /opt/bbmap/*.sh /usr/local/bin/
WORKDIR /data
# testing
FROM app as test
# get test data and test one thing that uses samtools/sambamba
RUN wget --progress=dot:giga https://raw.githubusercontent.com/StaPH-B/docker-builds/master/tests/SARS-CoV-2/SRR13957123.primertrim.sorted.bam && \
streamsam.sh in='SRR13957123.primertrim.sorted.bam' out='test_SRR13957123.primertrim.sorted.fastq.gz' && \
test -f test_SRR13957123.primertrim.sorted.fastq.gz