forked from MG-RAST/MG-RAST
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·84 lines (71 loc) · 2.02 KB
/
Dockerfile
File metadata and controls
executable file
·84 lines (71 loc) · 2.02 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
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
# MG-RAST API
FROM httpd:2.4
# MG-RAST dependencies
RUN apt-get update && apt-get install -y \
make \
curl \
ncbi-blast+ \
perl-modules \
liburi-perl \
liburi-encode-perl \
libwww-perl \
libxml-simple-perl \
libjson-perl \
libdbi-perl \
libdbd-mysql-perl \
libdigest-md5-perl \
libfile-slurp-perl \
libhtml-strip-perl \
liblist-moreutils-perl \
libcache-memcached-perl \
libhtml-template-perl \
libdigest-md5-perl \
libdigest-md5-file-perl \
libdatetime-perl \
libdatetime-format-iso8601-perl \
liblist-allutils-perl \
libposix-strptime-perl \
libuuid-tiny-perl \
libmongodb-perl \
libfreezethaw-perl \
libclone-perl \
libtemplate-perl \
libclass-isa-perl
# R dependencies
RUN apt-get install -y r-base r-cran-nlme r-cran-ecodist r-cran-rcolorbrewer r-cran-xml && \
echo 'install.packages("matlab", repos = "http://cran.wustl.edu")' | R --no-save && \
echo 'source("http://bioconductor.org/biocLite.R"); biocLite("pcaMethods"); biocLite("preprocessCore"); biocLite("DESeq")' | R --no-save
# python dependencies
RUN apt-get install -y python-dev python-pip && \
pip install \
openpyxl \
gspread \
xlrd \
lepl \
requests_toolbelt \
cassandra-driver \
pika
ENV PERL_MM_USE_DEFAULT 1
ENV HTTP_USER_AGENT iTunes/12.8
RUN cpan Inline::Python && \
cpan JSON::Validator
RUN mkdir -p /MG-RAST /var/log/httpd/api.metagenomics
COPY . /MG-RAST
RUN cd /MG-RAST && \
make && \
make api-doc && \
cp -rv src/MGRAST/bin/* bin/. && \
cp -rv src/MGRAST/pylib site/lib/. && \
cd site/CGI && \
rm -fv metagenomics.cgi upload.cgi m5nr.cgi m5nr_rest.cgi
RUN mkdir -p /sites/1/ && \
cd /sites/1/ && \
ln -s /MG-RAST/
# Configuration in mounted directory
RUN cd /MG-RAST/conf && ln -s /api-server-conf/Conf.pm
# m5nr blast files in mounted dir
RUN mkdir -p /m5nr
# write /VERSION.txt
RUN apt-get install -y git && cd /MG-RAST && echo $(git describe --tags) > /VERSION.txt && apt-get purge -y git
# Execute:
# /usr/local/apache2/bin/httpd -DFOREGROUND -f /api-server-conf/httpd.conf