Skip to content

Commit 86fde2c

Browse files
committed
[hack] temporary fix for ancient snakemake v7.32.4 docker
- Docker of Snakemake v7-32-4 is so old that Debian 10 Buster is EOL - Fetch missing packages from Debian archive instead
1 parent 3a72359 commit 86fde2c

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

Dockerfile

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ ARG vpipe_path
2525
ARG envs_path
2626
ARG test_data
2727

28+
# HACK v7.32.4 is so old that Debian 10 Buster is EOL
2829
# hadolint ignore=DL3008
29-
RUN apt-get update && apt-get install -y --no-install-recommends \
30+
RUN \
31+
sed -E -i 's@(\/\/)[^\.]+(\.debian\.org)@\1archive\2@g' /etc/apt/sources.list \
32+
apt-get update && apt-get install -y --no-install-recommends \
3033
jdupes
3134

3235
# TODO: only move workflow files
@@ -72,8 +75,11 @@ FROM snakemake/snakemake:${snaketag} AS vpipe-tests-base
7275
ARG install_path
7376

7477
# NOTE rsync only used with local scratch
78+
# HACK v7.32.4 is so old that Debian 10 Buster is EOL
7579
# hadolint ignore=DL3008
76-
RUN apt-get update && apt-get install -y --no-install-recommends \
80+
RUN \
81+
sed -E -i 's@(\/\/)[^\.]+(\.debian\.org)@\1archive\2@g' /etc/apt/sources.list \
82+
apt-get update && apt-get install -y --no-install-recommends \
7783
rsync \
7884
&& apt-get clean \
7985
&& rm -rf /var/lib/apt/lists/*
@@ -166,8 +172,11 @@ ARG install_path
166172
ARG vpipe_path
167173
ARG envs_path
168174

175+
# HACK v7.32.4 is so old that Debian 10 Buster is EOL
169176
# hadolint ignore=DL3008
170-
RUN apt-get update && apt-get install -y --no-install-recommends \
177+
RUN \
178+
sed -E -i 's@(\/\/)[^\.]+(\.debian\.org)@\1archive\2@g' /etc/apt/sources.list \
179+
apt-get update && apt-get install -y --no-install-recommends \
171180
rsync \
172181
&& apt-get clean \
173182
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)