Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
112 lines (96 loc) · 3.26 KB
/
Copy pathDockerfile
File metadata and controls
112 lines (96 loc) · 3.26 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
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
# MG-RAST v3-v4 website / API for development
FROM httpd:2.4.12
EXPOSE 80
# core dependencies
RUN apt-get update && apt-get install -y \
git-core \
libpq-dev \
make \
gcc \
curl \
wget \
zip \
rsyslog \
vim
# perl dependencies
RUN apt-get install -y \
perl-modules \
liburi-perl \
libwww-perl \
libfreezethaw-perl \
libhtml-strip-perl \
libjson-perl \
libdbi-perl \
libdbd-mysql-perl \
libdbd-pg-perl \
libdigest-md5-perl \
libdigest-md5-file-perl \
libfile-slurp-perl \
libhtml-strip-perl \
libhtml-template-perl \
libtemplate-plugin-number-format-perl \
libclass-isa-perl \
libgd-gd2-perl \
liblist-moreutils-perl \
libcache-memcached-perl \
libdatetime-perl \
liblist-allutils-perl \
libposix-strptime-perl \
libuuid-tiny-perl \
libstatistics-descriptive-perl \
libcaptcha-recaptcha-perl \
libxml-simple-perl \
libdatetime-perl \
libmongodb-perl \
libfreezethaw-perl \
libtemplate-perl \
libclass-isa-perl
ENV PERL_MM_USE_DEFAULT 1
RUN cpan Inline::Python
# python dependencies
RUN apt-get install -y python-dev python-pip && \
pip install openpyxl==1.8.6 && \
pip install gspread xlrd lepl cassandra-driver
# 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
# dirs to be mounted
RUN mkdir -p /MG-RAST /MG-RASTv4 /pipeline /tools /data /m5nr /config /ssl /usr/sbin/.postgresql
# 3rd party dependency: FragGeneScan
RUN cd /tools && \
git clone https://github.com/wltrimbl/FGS.git FragGeneScan && \
cd FragGeneScan && \
make clean && \
make fgs
# 3rd party dependency: blat
RUN cd /tools && \
curl -s -O http://hgwdev.cse.ucsc.edu/~kent/exe/linux/blatSuite.zip && \
unzip blatSuite.zip && \
rm -f blatSuite.zip
# kegg map data
RUN curl -s "http://shock.metagenomics.anl.gov/node/da268d29-918c-4205-8884-e6f3b175fe58?download" | tar -xvf - -C /data
# setup sendmail
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install postfix && \
cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf && \
postconf -e relayhost=[smtp.mcs.anl.gov] && \
postconf -e myorigin=mcs.anl.gov
## if need m5nr blast formatted files run this
# /MG-RAST/bin/download_m5nr_blast.sh
## put image from docker into shock
# skycore push -no_etcd -private -shock shock.metagenomics.anl.gov <image name:tag>
## get image from shock into docker
# skycore pull -no_etcd -shock shock.metagenomics.anl.gov <image id or shock node>
## start with this docker command
# docker run --name ${user}-develop \
# -v /homes/${user}/MG-RAST:/MG-RAST \
# -v /homes/${user}/pipeline:/pipeline \
# -v /homes/${user}/mgrast-config/services/develop:/config \
# -v /homes/${user}/mgrast-config/services/ssl:/ssl \
# -v /mcs/bio/mg-rast/data/md5nr:/m5nr \
# -p 80 -p 443 mgrast/develop <image name:tag> \
# bash -c "/etc/init.d/postfix start; \
# cp /config/postgresql/* /usr/sbin/.postgresql/; \
# chmod 600 /usr/sbin/.postgresql/*; \
# chown daemon:daemon /usr/sbin/.postgresql/*; \
# /usr/local/apache2/bin/httpd -DFOREGROUND -f /config/httpd.conf"