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,7 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/database/mysql/create_proxy.sql
RUN set -eux && \
echo "#!/bin/sh\nexit 101" > /usr/sbin/policy-rc.d && \
INSTALL_PKGS="tini \
sudo \
traceroute \
nmap \
ca-certificates \
@ -70,6 +71,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 /var/lib/zabbix/enc && \