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

@ -55,6 +55,7 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/database/mysql/create_server.sq
RUN set -eux && \
INSTALL_PKGS="bash \
tini \
sudo \
traceroute \
nmap \
fping \
@ -106,6 +107,7 @@ RUN set -eux && \
--shell /sbin/nologin \
--home-dir /var/lib/zabbix/ \
zabbix && \
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 && \