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.
Development environment for the plugin
This docker environment contains preconfigured Zabbix instance with several monitored hosts and preconfigured Grafana with added data source and dashboards for testing. Environment uses plugin built from sources, so in order to start environment, run commands from plugin root directory:
# Build plugin
make dist
# Test plugin with Zabbix 6.0
cd devenv/zabbix60
docker-compose up -d
Run bootstrap again in case of error:
docker-compose up -d --build bootstrap
Grafana will be available at http://localhost:3001 (with default admin:admin credentials).
If you want to edit sources, do it, rebuild plugin and then restart grafana container:
docker-compose restart grafana