Files
grafana-zabbix/devenv/zabbix70/bootstrap/Dockerfile
Zoltán Bedi aecdb4bbee Add support for v7 (#1835)
* Add support for v7

* Bump version
2024-06-10 14:53:15 +02:00

18 lines
428 B
Docker

FROM python:3.12-slim-bullseye
ENV ZBX_API_URL=http://zabbix-web:8080
ENV ZBX_API_USER="Admin"
ENV ZBX_API_PASSWORD="zabbix"
ENV ZBX_CONFIG="zbx_export_hosts.json"
ENV ZBX_BOOTSTRAP_SCRIPT="bootstrap_config.py"
RUN pip install zabbix_utils
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"]