wip
This commit is contained in:
@@ -25,6 +25,8 @@ COPY --from=builder ["/tmp/postgresql_plugin/postgresql.conf", "/etc/zabbix/zabb
|
||||
COPY --from=builder ["/tmp/mongodb_plugin/zabbix-agent2-plugin-mongodb", "/usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-mongodb"]
|
||||
COPY --from=builder ["/tmp/postgresql_plugin/zabbix-agent2-plugin-postgresql", "/usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-postgresql"]
|
||||
|
||||
COPY ["run.sh", "/usr/bin/"]
|
||||
|
||||
RUN set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
tzdata \
|
||||
@@ -60,6 +62,7 @@ RUN set -eux && \
|
||||
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ /usr/sbin/zabbix-agent2-plugin/ && \
|
||||
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ /usr/sbin/zabbix-agent2-plugin/ && \
|
||||
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/ /usr/sbin/zabbix-agent2-plugin/
|
||||
chmod a+x /usr/bin/run.sh
|
||||
|
||||
EXPOSE 10050/TCP 31999/TCP
|
||||
|
||||
@@ -72,7 +75,5 @@ WORKDIR /var/lib/zabbix
|
||||
USER 1997
|
||||
|
||||
# CMD ["/usr/sbin/zabbix_agent2", "--foreground", "-c", "/etc/zabbix/zabbix_agent2.conf"]
|
||||
COPY ["run.sh", "/usr/bin/"]
|
||||
RUN chmod a+x /usr/bin/run.sh
|
||||
|
||||
CMD [ "/run.sh" ]
|
||||
|
||||
Reference in New Issue
Block a user