@@ -6,6 +6,7 @@ maintainer="maxime.garcia@scilifelab.se"
66
77# Install libraries
88RUN apt-get update && apt-get install -y --no-install-recommends \
9+ apache2 \
910build-essential \
1011ca-certificates \
1112cpanminus \
@@ -14,22 +15,45 @@ git \
1415libmysqlclient-dev \
1516libpng12-dev \
1617libssl-dev \
18+ manpages \
1719mysql-client \
20+ openssl \
1821perl \
1922perl-base \
2023unzip \
24+ vim \
25+ wget \
2126&& rm -rf /var/lib/apt/lists/* \
22- && cpanm DBI DBD::mysql Set::IntervalTree PerlIO::gzip
27+ && cpanm DBI DBD::mysql
2328
24- # Setup ENV variables
25- ENV PATH="$PATH:/ensembl-vep" \
26- VEP_VERSION="release/90.1"
29+ # Set up ENV variables
30+ ENV CFLAGS="-fPIC" \
31+ DEPS="/home/vep/src" \
32+ HOME="/home/vep" \
33+ HTSLIB_DIR="/home/vep/src/htslib" \
34+ KENT_SRC="/home/vep/src/kent-335_base/src" \
35+ MACHTYPE="x86_64" \
36+ PATH="/home/vep/src/ensembl-vep:$PATH" \
37+ PERL5LIB="$PERL5LIB:/home/vep/src/bioperl-live-release-1-6-924:/home/vep/src/ensembl/modules/:/home/vep/src/ensembl-vep/modules/:/home/vep/src/ensembl-variation/modules/:/home/vep/src/ensembl-funcgen/modules/:/home/vep/src/ensembl-io/modules/"
2738
28- # Install VEP
29- RUN git clone https://github.com/Ensembl/ensembl-vep.git ensembl-vep \
30- --branch $VEP_VERSION \
31- && cd ensembl-vep \
32- && perl INSTALL.pl
39+ # Preparing install
40+ RUN mkdir -p $DEPS \
41+ && cd $DEPS \
42+ && git clone https://github.com/Ensembl/ensembl-funcgen ensembl-funcgen \
43+ && git clone https://github.com/Ensembl/ensembl-io ensembl-io \
44+ && git clone https://github.com/Ensembl/ensembl-variation ensembl-variation \
45+ && git clone https://github.com/Ensembl/ensembl-vep ensembl-vep \
46+ && git clone https://github.com/Ensembl/ensembl ensembl \
47+ && $DEPS/ensembl-vep/travisci/get_dependencies.sh \
48+ && $DEPS/ensembl-vep/travisci/build_c.sh \
49+ && cd $HTSLIB_DIR \
50+ && make install \
51+ && cpanm --installdeps --with-recommends --notest --cpanfile $DEPS/ensembl/cpanfile . \
52+ && cpanm --installdeps --with-recommends --notest --cpanfile $DEPS/ensembl-vep/cpanfile .
53+
54+ # Installing VEP
55+ RUN chmod u+x $DEPS/ensembl-vep/*.pl
56+ RUN $DEPS/ensembl-vep/INSTALL.pl -a a -l
3357
3458# Create UPPMAX directories
3559RUN mkdir /pica /proj /sw
0 commit comments