Skip to content
This repository was archived by the owner on Nov 20, 2017. It is now read-only.

Commit b8ce68d

Browse files
author
Szilveszter Juhos
authored
Merge pull request #27 from MaxUlysse/VEPfix
Fixing VEP container
2 parents 905ae6b + 3a99b8b commit b8ce68d

File tree

1 file changed

+33
-9
lines changed

1 file changed

+33
-9
lines changed

containers/vep/Dockerfile

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ maintainer="maxime.garcia@scilifelab.se"
66

77
# Install libraries
88
RUN apt-get update && apt-get install -y --no-install-recommends \
9+
apache2 \
910
build-essential \
1011
ca-certificates \
1112
cpanminus \
@@ -14,22 +15,45 @@ git \
1415
libmysqlclient-dev \
1516
libpng12-dev \
1617
libssl-dev \
18+
manpages \
1719
mysql-client \
20+
openssl \
1821
perl \
1922
perl-base \
2023
unzip \
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
3559
RUN mkdir /pica /proj /sw

0 commit comments

Comments
 (0)