2 MAINTAINER Tim Pierce <twp@clinicalfuture.com>
4 RUN apt-get update && \
5 apt-get -q -y install dpkg-dev debhelper libdbi-perl libwww-perl \
6 libtest-pod-perl libtest-pod-coverage-perl libjson-perl flex \
7 libgnupg-interface-perl libunix-syslog-perl libbsd-resource-perl \
8 bioperl perlmagick imagemagick gnuplot libbz2-dev libfftw3-3 libfftw3-dev \
9 xsltproc realpath supervisor libgpgme11-dev libcache-memcached-perl \
12 # Install warehouse-apps source and build.
13 # Remove failing test t/pod-coverage.t.
15 perl -MCPAN -e 'install MogileFS::Client;' \
16 -e 'install Crypt::GpgME' && \
17 git clone https://github.com/clinicalfuture/warehouse-apps.git /usr/src/warehouse-apps && \
18 rm /usr/src/warehouse-apps/libwarehouse-perl/t/pod-coverage.t && \
19 cd /usr/src/warehouse-apps && \
20 sh install.sh /usr/local && \
21 dpkg -i libwarehouse-perl*.deb && \
22 /bin/mkdir -p /data/keep-0
24 ADD supervisor.conf /etc/supervisor/conf.d/keepd.conf
25 ADD generated/warehouse.conf /etc/warehouse/warehouse-client.conf
27 # Start the supervisor.
28 CMD ["/usr/bin/supervisord", "-n"]