-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
76 lines (50 loc) · 3 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
FROM ubuntu
MAINTAINER Matthew Laird <[email protected]>
# Install packages then remove cache package list information
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -yq install openssh-client \
apache2 \
curl \
wget \
build-essential \
net-tools \
librpc-xml-perl \
bioperl \
ncbi-blast+-legacy \
nano \
libf2c2 \
apache2-dev \
libapache-singleton-perl \
libjson-rpc-perl
# fort77 \
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y install supervisor && apt-get clean && rm -rf /var/lib/apt/lists/*
ADD conf/supervisord.conf /etc/supervisor/conf.d/
# Manually set the apache environment variables in order to get apache to work immediately.
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_PID_FILE /var/run/apache2.pid
WORKDIR /usr/local/src
RUN echo '/usr/local/lib64' >>/etc/ld.so.conf
RUN wget http://www.psort.org/download/docker/pft2.3.4.docker64bit.tar.gz && tar zxvf pft2.3.4.docker64bit.tar.gz && cp pftools/pfscan /usr/local/bin/
RUN wget http://www.psort.org/download/libpsortb-1.0.tar.gz && tar zxvf libpsortb-1.0.tar.gz && cd libpsortb-1.0 && ./configure && make && make install && ldconfig
RUN wget http://www.psort.org/download/bio-tools-psort-all.3.0.4.tar.gz && tar zxvf bio-tools-psort-all.3.0.4.tar.gz
WORKDIR /usr/local/src/bio-tools-psort-all
RUN wget http://www.psort.org/download/docker/psortb.defaults
RUN perl Makefile.PL && make && make install && cp -r psort /usr/local/psortb
RUN a2enmod cgid && wget http://www.psort.org/download/docker/apache.conf.fragment && cat apache.conf.fragment >> /etc/apache2/apache2.conf
WORKDIR /usr/local/src
RUN wget http://www.psort.org/download/docker/apache-svm.tar.gz && tar zxvf apache-svm.tar.gz && cd apache-svm && make && cp svmloc.conf /etc/apache2/conf-available/
RUN wget http://www.psort.org/download/docker/startup.txt && mv startup.txt startup.pl && wget http://www.psort.org/download/docker/apache-psort.conf && cp apache-psort.conf /etc/apache2/conf-available/
RUN wget http://www.psort.org/download/docker/apache-psortb.tar.gz && tar zxvf apache-psortb.tar.gz && cd apache-psortb && perl Makefile.PL && make && make install
RUN cd /etc/apache2/conf-enabled/ && ln -s ../conf-available/svmloc.conf && ln -s ../conf-available/apache-psort.conf
RUN wget http://www.psort.org/download/docker/Request.pm && cp Request.pm /usr/share/perl5/Apache/Singleton/Request.pm
RUN wget http://www.psort.org/download/docker/CGI-FastTemplate-1.09.tar.gz && tar zxvf CGI-FastTemplate-1.09.tar.gz && cd CGI-FastTemplate-1.09 && perl Makefile.PL && make && make install
RUN cd /var/www/html && wget http://www.psort.org/download/docker/psort-web.tar.gz && tar zxvf psort-web.tar.gz
# Clean up a little
RUN rm -r pft2.3.4.docker64bit.tar.gz libpsortb-1.0.tar.gz libpsortb-1.0 bio-tools-psort-all.3.0.4.tar.gz bio-tools-psort-all
RUN /etc/init.d/apache2 restart
# Expose the web service to the world
EXPOSE 80
ADD conf/run.sh /opt/
CMD ["/opt/run.sh"]