Skip to content

Commit 3c9691d

Browse files
authored
[vep] Use system package manager for perl libraries (#14713)
### Change Description The changes in #14708 caused our vep images to be rebuilt, breaking them. The solution here is the one that we should have done from the beginning, install dependencies through the system package manager. In the interest of my sanity and effort, I only added the libraries that were being problematic from CPAN to the list of system installed ones. ### Security Assessment - [x] This change has no security impact
1 parent fbf1f61 commit 3c9691d

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

docker/hailgenetics/vep/grch38/95/Dockerfile

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ARG BASE_IMAGE={{ hail_ubuntu_image.image }}
22
FROM $BASE_IMAGE
33

4-
ENV VEP_VERSION 95
5-
ENV VEP_DIR /vep
4+
ENV VEP_VERSION=95
5+
ENV VEP_DIR=/vep
66

77
RUN apt-get update && apt-get -y install \
88
build-essential \
@@ -26,15 +26,16 @@ RUN apt-get update && apt-get -y install \
2626
tabix \
2727
unzip \
2828
vim \
29-
wget
30-
31-
RUN cpanm DBI \
32-
DBD::mysql \
33-
DBD::SQLite \
34-
Archive::Zip \
35-
PerlIO::gzip \
36-
Set::IntervalTree \
37-
JSON || { for i in /root/.cpanm/work/*/build.log; do echo $i; cat $i; done }
29+
wget \
30+
libarchive-zip-perl \
31+
libdbd-mysql-perl \
32+
libdbd-sqlite3-perl \
33+
libdbi-perl \
34+
libipc-run-perl \
35+
libjson-perl \
36+
libperlio-gzip-perl \
37+
libset-intervaltree-perl \
38+
libxml-libxml-perl
3839

3940
RUN mkdir ${VEP_DIR}
4041
WORKDIR ${VEP_DIR}
@@ -45,7 +46,7 @@ WORKDIR ${VEP_DIR}
4546
RUN git clone -b release/95.1 https://github.com/Ensembl/ensembl-vep.git && \
4647
cd ensembl-vep && \
4748
perl INSTALL.pl -a a --NO_UPDATE && \
48-
echo "#!/bin/bash" > /vep/vep && \
49+
echo '#!/bin/bash' > /vep/vep && \
4950
echo "export PERL5LIB=\$PERL5LIB:${VEP_DIR}/ensembl-vep/Plugins/" >> /vep/vep && \
5051
echo "exec perl ${VEP_DIR}/ensembl-vep/vep \"\$@\"" >> /vep/vep && \
5152
chmod +x /vep/vep && \

0 commit comments

Comments
 (0)