From d83306c216773df62983254f8aa657f7be2a244f Mon Sep 17 00:00:00 2001 From: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com> Date: Thu, 17 Jul 2025 19:37:16 +0200 Subject: [PATCH] Fix Zabbix compatibility tests Docker build failures (#2057) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Zabbix compatibility tests workflow were failing with Docker build errors: ``` E: The repository 'http://deb.debian.org/debian buster Release' does not have a Release file. E: The repository 'http://deb.debian.org/debian buster-updates Release' does not have a Release file. E: The repository 'http://security.debian.org/debian-security buster/updates Release' does not have a Release file. ``` The `python:2.7` Docker image is based on Debian Buster, which reached end-of-life in August 2022. The Debian repositories for Buster have been moved from their original locations to `archive.debian.org`, but the Docker image still points to the original URLs. This PR updates `devenv/zas-agent/Dockerfile` to redirect repository sources to use Debian's archive repositories: - `http://deb.debian.org/debian` → `http://archive.debian.org/debian` - `http://security.debian.org/debian-security` → `http://archive.debian.org/debian-security` This allows the Python 2.7 environment to continue working with the zas_agent dependency, which requires Python 2.7 syntax. --- devenv/zas-agent/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devenv/zas-agent/Dockerfile b/devenv/zas-agent/Dockerfile index aca38ba..0910ee0 100644 --- a/devenv/zas-agent/Dockerfile +++ b/devenv/zas-agent/Dockerfile @@ -8,6 +8,11 @@ ENV ZAS_ARC_NAME=zas_agent-redis-dependency ENV ZAS_ARC_FILE=${ZAS_ARC_NAME}.zip ENV ZAS_WORKDIR="/zas-agent" +# Fix repository sources to use archive.debian.org for Debian Buster +RUN sed -i 's|http://deb.debian.org/debian|http://archive.debian.org/debian|g' /etc/apt/sources.list +RUN sed -i 's|http://security.debian.org/debian-security|http://archive.debian.org/debian-security|g' /etc/apt/sources.list +RUN sed -i '/stretch-updates/d' /etc/apt/sources.list + RUN apt-get update && apt-get install -y ca-certificates RUN apt-get install -y unzip wget