wip
This commit is contained in:
@@ -18,7 +18,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", "/usr/bin/run.sh"]
|
||||
COPY run.sh /
|
||||
|
||||
RUN set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
@@ -60,7 +60,7 @@ 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 /usr/bin/run.sh
|
||||
chmod a+x /run.sh
|
||||
|
||||
EXPOSE 10050/TCP 31999/TCP
|
||||
|
||||
@@ -71,4 +71,4 @@ WORKDIR /var/lib/zabbix
|
||||
USER 1997
|
||||
|
||||
# CMD ["/usr/sbin/zabbix_agent2", "--foreground", "-c", "/config/zabbix_agent2.conf"]
|
||||
CMD [ "/usr/bin/run.sh" ]
|
||||
CMD [ "/run.sh" ]
|
||||
|
||||
Reference in New Issue
Block a user