Skip to content

Commit

Permalink
Merge some steps in the Docker conf
Browse files Browse the repository at this point in the history
  • Loading branch information
kimrutherford committed Dec 4, 2015
1 parent b175944 commit a0fe815
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 27 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
@@ -1,6 +1,7 @@
FROM pombase/canto-base:v1
FROM pombase/canto-base:v2
MAINTAINER Kim Rutherford <kim@pombase.org>

COPY . canto/

EXPOSE 7000
EXPOSE 5000

38 changes: 13 additions & 25 deletions etc/Dockerfile-base
@@ -1,40 +1,28 @@
FROM debian:stretch
MAINTAINER Kim Rutherford <kim@pombase.org>
RUN apt-get update

RUN apt-get install -y ntpdate sqlite3 make tar gzip bzip2 whiptail gcc g++ wget

RUN apt-get install -y perl-base git-core libxml2-dev zlib1g-dev libssl-dev \
RUN apt-get update; \
apt-get install -y ntpdate sqlite3 make tar gzip bzip2 whiptail gcc g++ wget \
perl-base git-core libxml2-dev zlib1g-dev libssl-dev \
libexpat1-dev libpq-dev

RUN (echo o conf prerequisites_policy follow; echo o conf build_requires_install_policy no; echo o conf commit) | cpan

RUN echo installing lib lucene && (cd /tmp/; \
wget http://ftp.debian.org/debian/pool/main/c/clucene-core/libclucene-dev_0.9.21b-2+b1_amd64.deb && \
wget http://ftp.debian.org/debian/pool/main/c/clucene-core/libclucene0ldbl_0.9.21b-2+b1_amd64.deb && \
dpkg -i libclucene0ldbl_0.9.21b-2+b1_amd64.deb libclucene-dev_0.9.21b-2+b1_amd64.deb)

RUN cpan -i Lucene

RUN cpan -i DBIx::Class::ResultSet::Data::Pageset Data::Rmap GO::Parser

RUN cpan -i XML::LibXML HTML::HTML5::Writer HTML::HTML5::Builder HTML::Mason
dpkg -i libclucene0ldbl_0.9.21b-2+b1_amd64.deb libclucene-dev_0.9.21b-2+b1_amd64.deb); \
cpan -i Lucene

RUN cpan -i Moose MooseX::Test::Role Package::Alias

RUN cpan -i String::Similarity Text::MultiMarkdown

RUN cpan -i \
RUN cpan -i DBIx::Class::ResultSet::Data::Pageset Data::Rmap GO::Parser \
XML::LibXML HTML::HTML5::Writer HTML::HTML5::Builder HTML::Mason \
Moose MooseX::Test::Role Package::Alias \
String::Similarity Text::MultiMarkdown \
Plack::Middleware::Debug Plack::Middleware::Expires \
Plack::Middleware::InteractiveDebugger

RUN cpan -i Starman Net::Server::SS::PreFork Server::Starter

RUN cpan -i \
Plack::Middleware::InteractiveDebugger \
Starman Net::Server::SS::PreFork Server::Starter \
Catalyst::Plugin::PageCache Catalyst::Plugin::Session::PerUser \
Catalyst::TraitFor::Request::ProxyBase CatalystX::RoleApplicator

RUN cpan -i XML::Simple Template Module::Install Module::Install::Catalyst
Catalyst::TraitFor::Request::ProxyBase CatalystX::RoleApplicator \
XML::Simple Template Module::Install Module::Install::Catalyst

COPY . /tmp/canto/
RUN (cd /tmp/canto; perl Makefile.PL && make installdeps); rm -rf /tmp/canto

0 comments on commit a0fe815

Please sign in to comment.