From bb8852ccf5079eb7dbd88836774d2af71d59a8df Mon Sep 17 00:00:00 2001 From: sinav Date: Sun, 23 Jun 2024 19:24:56 +0300 Subject: [PATCH] wip --- zabbix-agent2/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zabbix-agent2/Dockerfile b/zabbix-agent2/Dockerfile index 60dee4c..75bd49f 100644 --- a/zabbix-agent2/Dockerfile +++ b/zabbix-agent2/Dockerfile @@ -21,7 +21,7 @@ STOPSIGNAL SIGTERM COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/src/go/bin/zabbix_agent2", "/usr/sbin/zabbix_agent2"] COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/conf/zabbix_agentd.conf", "/etc/zabbix/zabbix_agent2.conf"] -COPY run.sh /run.sh +# COPY run.sh /run.sh COPY rootfs / RUN set -eux && \ @@ -66,7 +66,8 @@ 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 /run.sh + chmod a+x /etc/services.d/zabbix_agent2/run && \ + chmod a+x /etc/services.d/zabbix_agent2/finish EXPOSE 10050/TCP 31999/TCP