Added sudo package for nmap processing

This commit is contained in:
Alexey Pustovalov
2022-12-16 16:23:51 +09:00
parent 85862a5f9f
commit 178a91c4d4
19 changed files with 42 additions and 0 deletions

View File

@ -37,6 +37,8 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/database/postgresql/timescaledb
RUN set -eux && \
INSTALL_PKGS="bash \
tini \
sudo \
traceroute \
nmap \
fping \
tzdata \
@ -71,6 +73,7 @@ RUN set -eux && \
zabbix && \
adduser zabbix root && \
adduser zabbix dialout && \
echo "zabbix ALL=(root) NOPASSWD: /usr/bin/nmap" >> /etc/sudoers.d/zabbix && \
mkdir -p /etc/zabbix && \
mkdir -p /var/lib/zabbix && \
mkdir -p /usr/lib/zabbix/alertscripts && \