Chore: Add devenv for Zabbix 7 (#1730)

This commit is contained in:
Zoltán Bedi
2023-10-26 12:36:26 +02:00
committed by GitHub
parent 06835a2af9
commit e0bfe1fe17
4 changed files with 648 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
FROM python:2.7
ENV ZBX_API_URL=http://zabbix-web:8080
ENV ZBX_API_USER="Admin"
ENV ZBX_API_PASSWORD="zabbix"
ENV ZBX_CONFIG="zbx_export_hosts.xml"
ENV ZBX_BOOTSTRAP_SCRIPT="bootstrap_config.py"
RUN pip install pyzabbix
ADD ./bootstrap_config.py /bootstrap_config.py
ADD ${ZBX_CONFIG} /${ZBX_CONFIG}
WORKDIR /
# Run bootstrap_config.py when the container launches
CMD ["python", "/bootstrap_config.py"]