-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile
155 lines (140 loc) · 3.89 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# MG-RAST pipeline Dockerfile
FROM debian
MAINTAINER The MG-RAST team
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -qq && apt-get install -y locales -qq && locale-gen en_US.UTF-8 en_us && dpkg-reconfigure locales && dpkg-reconfigure locales && locale-gen C.UTF-8 && /usr/sbin/update-locale LANG=C.UTF-8
ENV LANG C.UTF-8
ENV LANGUAGE C.UTF-8
ENV LC_ALL C.UTF-8
RUN echo 'DEBIAN_FRONTEND=noninteractive' >> /etc/environment
RUN apt-get update && apt-get install -y \
bowtie2 \
cdbfasta \
cd-hit \
cmake \
dh-autoreconf \
git \
jellyfish \
libcwd-guard-perl \
libberkeleydb-perl \
libdata-dump-streamer-perl \
libdatetime-perl \
libdatetime-format-iso8601-perl \
libdbi-perl \
libdigest-md5-perl \
libdigest-md5-file-perl \
libdbd-pg-perl \
libfile-slurp-perl \
libfilehandle-fmode-perl \
libgetopt-long-descriptive-perl \
libjson-perl \
liblist-allutils-perl \
libpq-dev \
libpng-dev \
libposix-strptime-perl \
libstring-random-perl \
libtemplate-perl \
liburi-encode-perl \
libunicode-escape-perl \
libwww-perl \
liblog-log4perl-perl \
libcapture-tiny-perl \
make \
python-biopython \
python-dev \
python-leveldb \
perl-modules \
python-numpy \
python-pika \
python-pip \
python-scipy \
python-sphinx \
unzip \
wget \
vim \
curl
#### install BLAT from src
RUN cd /root \
&& wget "http://users.soe.ucsc.edu/~kent/src/blatSrc35.zip" \
&& unzip blatSrc35.zip && export C_INCLUDE_PATH=/root/include \
&& export MACHTYPE=x86_64-pc-linux-gnu \
&& cd blatSrc \
&& make BINDIR=/usr/local/bin/ \
&& strip /usr/local/bin/blat \
&& cd /root ; rm -rf blatSrc blatSrc35.zip
### install FragGeneScan from our patched source in github
RUN cd /root \
&& git clone https://github.com/wltrimbl/FGS.git FragGeneScan \
&& cd FragGeneScan \
&& make \
&& mkdir bin \
&& mv train bin/. \
&& mv *.pl bin/. \
&& install -s -m555 FragGeneScan bin/. \
&& make clean \
&& rm -rf example .git
ENV PATH /root/FragGeneScan/bin:$PATH
### install DIAMOND
RUN cd /root \
&& git clone https://github.com/bbuchfink/diamond.git \
&& cd diamond \
&& sh ./build_simple.sh \
&& install -s -m555 diamond /usr/local/bin \
&& cd /root ; rm -rf diamond
### install ea-utils
RUN cd /root \
&& git clone https://github.com/ExpressionAnalysis/ea-utils.git \
&& cd ea-utils/clipper \
&& make fastq-multx \
&& make fastq-join \
&& make fastq-mcf \
&& install -m755 -s fastq-multx /usr/local/bin \
&& install -m755 -s fastq-join /usr/local/bin \
&& install -m755 -s fastq-mcf /usr/local/bin \
&& cd /root ; rm -rf ea-utils
### install sortmerna
RUN cd /root \
&& wget https://github.com/biocore/sortmerna/archive/2.1b.tar.gz \
&& tar xvf 2*.tar.gz \
&& cd sortmerna-2* \
&& sed -i 's/^\#define READLEN [0-9]*/#define READLEN 500000/' include/common.hpp \
&& ./configure \
&& make install \
&& make clean \
&& cd /root ; rm -rf sortmerna-2* 2*.tar.gz
### install vsearch 2.43
RUN cd /root \
&& wget https://github.com/torognes/vsearch/archive/v2.4.3.tar.gz \
&& tar xzf v2*.tar.gz \
&& cd vsearch-2* \
&& sh ./autogen.sh \
&& ./configure --prefix=/usr/local/ \
&& make \
&& make install \
&& make clean \
&& cd /root ; rm -rf vsearch-2* v2*.tar.gz
### install skewer
RUN cd /root \
&& git clone https://github.com/relipmoc/skewer \
&& cd skewer \
&& make \
&& make install \
&& make clean \
&& cd /root ; rm -rf skewer
### install autoskewer
RUN cd /root \
&& git clone http://github.com/MG-RAST/autoskewer \
&& cd autoskewer \
&& make
ENV PATH /root/autoskewer/:$PATH
### install CWL runner
RUN pip install cwlref-runner
# node.js version 7
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash - ; \
apt-get install -y nodejs
# copy files into image
COPY CWL /CWL/
COPY mgcmd/* bin/* /usr/local/bin/
COPY lib/* /usr/local/lib/site_perl/
COPY superblat /usr/local/bin/
RUN chmod 555 /usr/local/bin/* && strip /usr/local/bin/superblat