Skip to content

Commit 16257d0

Browse files
authored
chore(ci): use archive for buster debian builds (#2506)
1 parent 59ca8b5 commit 16257d0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/docker/debian10-deb.Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ FROM debian:10
33
ARG artifact_url=""
44
ADD ${artifact_url} /tmp
55
ADD node_modules /usr/share/mongodb-crypt-library-version/node_modules
6+
7+
# Update sources.list to use archived repositories for Debian 10 (buster)
8+
RUN sed -i 's|http://deb.debian.org/debian|http://archive.debian.org/debian|g' /etc/apt/sources.list && \
9+
sed -i '/security.debian.org/d' /etc/apt/sources.list && \
10+
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until
11+
612
RUN apt-get update
713
RUN apt-get install -y man-db
814
RUN apt-get install -y /tmp/*mongosh*.deb

0 commit comments

Comments
 (0)