Devenv: use zabbix LTS version 5.0
This commit is contained in:
18
devenv/zabbix50/bootstrap/Dockerfile
Normal file
18
devenv/zabbix50/bootstrap/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM python:3
|
||||
|
||||
ENV ZBX_API_URL=http://zabbix-web
|
||||
ENV ZBX_API_USER="Admin"
|
||||
ENV ZBX_API_PASSWORD="zabbix"
|
||||
ENV ZBX_CONFIG="zbx_export_hosts_5.xml"
|
||||
ENV ZBX_BOOTSTRAP_SCRIPT="bootstrap_config.py"
|
||||
|
||||
RUN pip install pyzabbix
|
||||
|
||||
WORKDIR /
|
||||
|
||||
ADD ./${ZBX_CONFIG} /${ZBX_CONFIG}
|
||||
ADD ./bootstrap_config.py /bootstrap_config.py
|
||||
# RUN cp ./${ZBX_CONFIG} /${ZBX_CONFIG}
|
||||
|
||||
# Run bootstrap_config.py when the container launches
|
||||
CMD ["python", "/bootstrap_config.py"]
|
||||
Reference in New Issue
Block a user