Skip to content

Commit cf0f16d

Browse files
committed
moved from Debian to Ubuntu minimal
added prodigal updated bowtie and vsearch more cleanup added using "wget -O file" pattern
1 parent 6a87271 commit cf0f16d

2 files changed

Lines changed: 38 additions & 32 deletions

File tree

Dockerfile

Lines changed: 38 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
# MG-RAST pipeline Dockerfile
22

3-
FROM debian
3+
FROM ubuntu
4+
#debian
45
MAINTAINER The MG-RAST team
56

67
ARG DEBIAN_FRONTEND=noninteractive
7-
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
8-
ENV LANG C.UTF-8
9-
ENV LANGUAGE C.UTF-8
10-
ENV LC_ALL C.UTF-8
118

129
RUN apt-get update && apt-get install -y \
1310
cdbfasta \
@@ -16,7 +13,7 @@ RUN apt-get update && apt-get install -y \
1613
dh-autoreconf \
1714
git \
1815
jellyfish \
19-
libtbb-dev \
16+
libtbb-dev \
2017
libcwd-guard-perl \
2118
libberkeleydb-perl \
2219
libdata-dump-streamer-perl \
@@ -42,18 +39,19 @@ RUN apt-get update && apt-get install -y \
4239
liblog-log4perl-perl \
4340
libcapture-tiny-perl \
4441
make \
42+
nodejs \
4543
python-biopython \
4644
python-dev \
4745
python-leveldb \
4846
perl-modules \
49-
python-numpy \
47+
python-numpy \
5048
python-pika \
51-
python-pip \
49+
python-pip \
5250
python-scipy \
5351
python-sphinx \
5452
unzip \
5553
wget \
56-
vim \
54+
vim \
5755
curl
5856

5957
#### install BLAT from src
@@ -64,7 +62,7 @@ RUN cd /root \
6462
&& cd blatSrc \
6563
&& make BINDIR=/usr/local/bin/ \
6664
&& strip /usr/local/bin/blat \
67-
&& cd /root ; rm -rf blatSrc blatSrc35.zip
65+
&& cd /root ; rm -rf blatSrc*
6866

6967
### install FragGeneScan from our patched source in github
7068
RUN cd /root \
@@ -74,10 +72,9 @@ RUN cd /root \
7472
&& mkdir bin \
7573
&& mv train bin/. \
7674
&& mv *.pl bin/. \
77-
&& install -s -m555 FragGeneScan bin/. \
75+
&& install -s -m555 FragGeneScan /usr/local/bin/. \
7876
&& make clean \
79-
&& rm -rf example .git
80-
ENV PATH /root/FragGeneScan/bin:$PATH
77+
&& cd /root ; rm -rf FragGeneScan
8178

8279
### install DIAMOND
8380
RUN cd /root \
@@ -101,34 +98,35 @@ RUN cd /root \
10198

10299
### install sortmerna 2.1b
103100
RUN cd /root \
104-
&& wget https://github.com/biocore/sortmerna/archive/2.1b.tar.gz \
105-
&& tar xvf 2*.tar.gz \
101+
&& wget -O sortmerna-2.tar.gz https://github.com/biocore/sortmerna/archive/2.1b.tar.gz \
102+
&& tar xvf sortmerna-2.tar.gz \
106103
&& cd sortmerna-2* \
107104
&& sed -i 's/^\#define READLEN [0-9]*/#define READLEN 500000/' include/common.hpp \
108105
&& ./configure \
109-
&& make install \
110-
&& make clean \
111-
&& cd /root ; rm -rf sortmerna-2* 2*.tar.gz
106+
&& make install \
107+
&& make clean \
108+
&& cd /root ; rm -rf sortmerna-2*
112109

113-
### install vsearch 2.7.1
110+
### install vsearch 2.12.0
114111
RUN cd /root \
115-
&& wget https://github.com/torognes/vsearch/archive/v2.7.1.tar.gz \
116-
&& tar xzf v2*.tar.gz \
112+
&& wget -O vsearch-2.tar.gz https://github.com/torognes/vsearch/archive/v2.12.0.tar.gz \
113+
&& tar xzf vsearch-2.tar.gz \
117114
&& cd vsearch-2* \
118115
&& sh ./autogen.sh \
119116
&& ./configure --prefix=/usr/local/ \
120117
&& make \
121118
&& make install \
122119
&& make clean \
123-
&& cd /root ; rm -rf vsearch-2* v2*.tar.gz
120+
&& cd /root ; rm -rf vsearch-2*
124121

125-
### install bowtie2 2.3.4.1
122+
### install bowtie2 2.3.5
126123
RUN cd /root \
127-
&& wget -O bowtie2-2.3.4.1-linux-x86_64.zip 'https://sourceforge.net/projects/bowtie-bio/files/bowtie2/2.3.4.1/bowtie2-2.3.4.1-linux-x86_64.zip/download' \
128-
&& unzip bowtie2-*.zip \
129-
&& rm -f bowtie2-*.zip \
124+
&& wget -O bowtie2.zip https://github.com/BenLangmead/bowtie2/releases/download/v2.3.5/bowtie2-2.3.5-linux-x86_64.zip \
125+
&& unzip bowtie2.zip \
126+
&& rm -f bowtie2.zip \
130127
&& cd bowtie2-* \
131-
&& cp bowtie2* /usr/local/bin/.
128+
&& cp bowtie2* /usr/local/bin/ \
129+
&& cd /root ; rm -rf bowtie2*
132130

133131
### install skewer
134132
RUN cd /root \
@@ -139,22 +137,30 @@ RUN cd /root \
139137
&& make clean \
140138
&& cd /root ; rm -rf skewer
141139

140+
### install prodigal
141+
RUN cd /root \
142+
&& wget -O Prodigal.tar.gz https://github.com/hyattpd/Prodigal/archive/v2.6.3.tar.gz \
143+
&& tar xf Prodigal.tar.gz \
144+
&& cd Prodigal* \
145+
&& make \
146+
&& make install \
147+
&& make clean \
148+
&& cd /root ; rm -rf Prodigal*
149+
150+
142151
### install autoskewer
143152
RUN cd /root \
144153
&& git clone http://github.com/MG-RAST/autoskewer \
145154
&& cd autoskewer \
146-
&& make install
155+
&& make install \
156+
&& cd /root ; rm -rf autoskewer
147157

148158
### install CWL runner
149159
RUN pip install --upgrade pip
150160
RUN pip install cwlref-runner
151161

152162
RUN apt-get clean && apt-get update
153163

154-
# node.js version 7
155-
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - ; \
156-
apt-get install -y nodejs
157-
158164
# copy files into image
159165
COPY CWL /CWL/
160166
COPY mgcmd/* bin/* /usr/local/bin/

superblat

2.03 MB
Binary file not shown.

0 commit comments

Comments
 (0)