This commit is contained in:
2024-06-23 20:14:14 +03:00
parent 5a0859c52d
commit 2798470561
2 changed files with 6 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/src/go/bin/zabbix_agent2", "/us
COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/conf/zabbix_agentd.conf", "/etc/zabbix/zabbix_agent2.conf"]
COPY run.sh /run.sh
COPY rootfs /
# COPY rootfs /
RUN set -eux && \
INSTALL_PKGS="bash \
@@ -64,9 +64,9 @@ RUN set -eux && \
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/ && \
chmod a+x /etc/services.d/zabbix_agent2/run && \
chmod a+x /run.sh && \
chmod a+x /etc/services.d/zabbix_agent2/finish
# chmod a+x /etc/services.d/zabbix_agent2/run && \
# chmod a+x /etc/services.d/zabbix_agent2/finish
chmod a+x /run.sh
EXPOSE 10050/TCP 31999/TCP
@@ -80,4 +80,4 @@ WORKDIR /var/lib/zabbix
USER 1997
# CMD ["/usr/sbin/zabbix_agent2", "--foreground", "-c", "/config/zabbix_agent2.conf"]
ENTRYPOINT [ "/run.sh" ]
CMD [ "/run.sh" ]

View File

@@ -12,7 +12,7 @@ arch:
- i386
startup: system
boot: auto
init: false
# init: false
full_access: true
host_ipc: true
host_pid: true