wip
This commit is contained in:
@@ -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 --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 /
|
# COPY rootfs /
|
||||||
|
|
||||||
RUN set -eux && \
|
RUN set -eux && \
|
||||||
INSTALL_PKGS="bash \
|
INSTALL_PKGS="bash \
|
||||||
@@ -64,9 +64,9 @@ RUN set -eux && \
|
|||||||
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
|
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
chmod -R g=u /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 /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/finish
|
chmod a+x /run.sh
|
||||||
|
|
||||||
EXPOSE 10050/TCP 31999/TCP
|
EXPOSE 10050/TCP 31999/TCP
|
||||||
|
|
||||||
@@ -80,4 +80,4 @@ WORKDIR /var/lib/zabbix
|
|||||||
USER 1997
|
USER 1997
|
||||||
|
|
||||||
# CMD ["/usr/sbin/zabbix_agent2", "--foreground", "-c", "/config/zabbix_agent2.conf"]
|
# CMD ["/usr/sbin/zabbix_agent2", "--foreground", "-c", "/config/zabbix_agent2.conf"]
|
||||||
ENTRYPOINT [ "/run.sh" ]
|
CMD [ "/run.sh" ]
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ arch:
|
|||||||
- i386
|
- i386
|
||||||
startup: system
|
startup: system
|
||||||
boot: auto
|
boot: auto
|
||||||
init: false
|
# init: false
|
||||||
full_access: true
|
full_access: true
|
||||||
host_ipc: true
|
host_ipc: true
|
||||||
host_pid: true
|
host_pid: true
|
||||||
|
|||||||
Reference in New Issue
Block a user