Commit b1351cd8 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Install the dependencies via apt-get to save time

cpanm is still run to catch the missing ones (if any)
parent 36539527
...@@ -11,18 +11,26 @@ ...@@ -11,18 +11,26 @@
FROM ubuntu:16.04 FROM ubuntu:16.04
RUN apt-get update -y \ RUN apt-get update -y \
&& apt-get install git build-essential curl sqlite3 mysql-client libmariadb-client-lgpl-dev libpq-dev libexpat1-dev graphviz -y \ # Needed to clone the checkout and use cpanm
&& apt-get install netcat.openbsd vim perl-doc -y \ && apt-get install -y cpanminus git build-essential \
# Database-related dependencies
sqlite3 libdbd-sqlite3-perl postgresql-client libdbd-pg-perl mysql-client libdbd-mysql-perl libdbi-perl \
# Required Perl modules
libcapture-tiny-perl libdatetime-perl libhtml-parser-perl libjson-perl \
# Perl modules needed for the test-suite
libtest-exception-perl libtest-simple-perl libtest-warn-perl libtest-warnings-perl libtest-file-contents-perl libtest-perl-critic-perl libgraphviz-perl \
# Recommendations
libgetopt-argvfile-perl libchart-gnuplot-perl libbsd-resource-perl \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# RUN apt-get install iputils-ping net-tools apt-file -y ## Useful for debugging
# RUN apt-get install netcat.openbsd vim perl-doc iputils-ping net-tools apt-file -y
RUN ln -s /usr/bin/mariadb_config /usr/bin/mysql_config RUN ln -s /usr/bin/mariadb_config /usr/bin/mysql_config
RUN curl -L | perl - App::cpanminus
RUN mkdir /repo && git clone -b master /repo/ensembl-hive RUN mkdir /repo && git clone -b master /repo/ensembl-hive
# Install the missing dependencies (if any)
RUN cpanm --installdeps --with-recommends /repo/ensembl-hive RUN cpanm --installdeps --with-recommends /repo/ensembl-hive
# for the processes you run in an interactive bash # for the processes you run in an interactive bash
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment