From a3a282284a2c3d8d4641ed6dd1060569e638fe6f Mon Sep 17 00:00:00 2001
From: Daniel <d.hornung@indiscale.com>
Date: Mon, 26 Sep 2022 12:30:35 +0200
Subject: [PATCH] ENH: Use local Debian repository first.

---
 unittests/docker/Dockerfile         | 4 ++++
 unittests/docker/sources.list.local | 6 ++++++
 2 files changed, 10 insertions(+)
 create mode 100644 unittests/docker/sources.list.local

diff --git a/unittests/docker/Dockerfile b/unittests/docker/Dockerfile
index 7fa3f75b..06f9d6c8 100644
--- a/unittests/docker/Dockerfile
+++ b/unittests/docker/Dockerfile
@@ -1,4 +1,8 @@
 FROM debian:latest
+# Use local package repository
+COPY sources.list.local /etc/apt/
+RUN mv /etc/apt/sources.list /etc/apt/sources.list.orig
+RUN cat /etc/apt/sources.list.local /etc/apt/sources.list.orig > /etc/apt/sources.list
 RUN apt-get update && \
     apt-get install -y \
       pylint3 python3-pip tox git \
diff --git a/unittests/docker/sources.list.local b/unittests/docker/sources.list.local
new file mode 100644
index 00000000..c0b41073
--- /dev/null
+++ b/unittests/docker/sources.list.local
@@ -0,0 +1,6 @@
+# Local repositories at Netcup
+deb http://debian.netcup.net/debian/ buster main
+deb http://mirrors.n-ix.net/debian-security buster/updates main
+deb http://debian.netcup.net/debian/ buster-updates main
+
+# The original content follows here:
\ No newline at end of file
-- 
GitLab