Skip to content

Commit

Permalink
don't download VEP cache after all - too big
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Apr 2, 2024
1 parent ad7f2a1 commit f3265dd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
11 changes: 0 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ RUN curl -L \


# Clone (but don't install yet) Ensembl-VEP
ENV VEP_ENSEMBL_VERSION=111
ENV VEP_ENSEMBL_GIT_VERSION=111.0
RUN git clone --depth 1 -b "release/${VEP_ENSEMBL_GIT_VERSION}" https://github.com/Ensembl/ensembl-vep.git && \
chmod u+x ensembl-vep/*.pl
Expand All @@ -46,14 +45,6 @@ RUN curl -L https://github.com/Ensembl/ensembl-xs/archive/2.3.2.zip -o ensembl-x
mv ensembl-xs-2.3.2 ensembl-xs && \
rm -rf ensembl-xs.zip

WORKDIR /vep-cache

# Download GRCh38 VEP cache
ENV VEP_CACHE_BASE_URL="https://ftp.ensembl.org/pub/release-${VEP_ENSEMBL_VERSION}/variation/indexed_vep_cache"
ENV VEP_CACHE_ARCHIVE="homo_sapiens_vep_${VEP_ENSEMBL_VERSION}_GRCh38.tar.gz"
RUN curl -O "${VEP_CACHE_BASE_URL}/${VEP_CACHE_ARCHIVE}" && \
tar xzvf "${VEP_CACHE_ARCHIVE}"

WORKDIR /

FROM ghcr.io/bento-platform/bento_base_image:python-debian-2024.04.01 AS base-deps
Expand Down Expand Up @@ -138,8 +129,6 @@ COPY --from=downloaded-deps /womtool.jar /womtool.jar
# - Copy Ensembl-VEP
COPY --from=ensemblorg/ensembl-vep:release_111.0 /usr/share/perl/5.34.0/CPAN /opt/vep
COPY --from=ensemblorg/ensembl-vep:release_111.0 /opt/vep /opt/vep
COPY --from=downloaded-deps /vep-cache /vep-cache
ENV VEP_CACHE_DIR=/vep-cache

ENTRYPOINT [ "bash", "./entrypoint.bash" ]
CMD [ "bash", "./run.bash" ]
11 changes: 0 additions & 11 deletions dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ RUN curl -L \


# Clone (but don't install yet) Ensembl-VEP
ENV VEP_ENSEMBL_VERSION=111
ENV VEP_ENSEMBL_GIT_VERSION=111.0
RUN git clone --depth 1 -b "release/${VEP_ENSEMBL_GIT_VERSION}" https://github.com/Ensembl/ensembl-vep.git && \
chmod u+x ensembl-vep/*.pl
Expand All @@ -46,14 +45,6 @@ RUN curl -L https://github.com/Ensembl/ensembl-xs/archive/2.3.2.zip -o ensembl-x
mv ensembl-xs-2.3.2 ensembl-xs && \
rm -rf ensembl-xs.zip

WORKDIR /vep-cache

# Download GRCh38 VEP cache
ENV VEP_CACHE_BASE_URL="https://ftp.ensembl.org/pub/release-${VEP_ENSEMBL_VERSION}/variation/indexed_vep_cache"
ENV VEP_CACHE_ARCHIVE="homo_sapiens_vep_${VEP_ENSEMBL_VERSION}_GRCh38.tar.gz"
RUN curl -O "${VEP_CACHE_BASE_URL}/${VEP_CACHE_ARCHIVE}" && \
tar xzvf "${VEP_CACHE_ARCHIVE}"

WORKDIR /

FROM ghcr.io/bento-platform/bento_base_image:python-debian-2024.04.01 AS base-deps
Expand Down Expand Up @@ -145,8 +136,6 @@ COPY --from=downloaded-deps /womtool.jar /womtool.jar
# - Copy Ensembl-VEP
COPY --from=ensemblorg/ensembl-vep:release_111.0 /usr/share/perl/5.34.0/CPAN /opt/vep
COPY --from=ensemblorg/ensembl-vep:release_111.0 /opt/vep /opt/vep
COPY --from=downloaded-deps /vep-cache /vep-cache
ENV VEP_CACHE_DIR=/vep-cache

ENTRYPOINT [ "bash", "./entrypoint.bash" ]
CMD [ "bash", "./run.dev.bash" ]

0 comments on commit f3265dd

Please sign in to comment.