mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-23 00:03:42 +01:00
Updated Alpine images
This commit is contained in:
parent
0c6b2f0d48
commit
61a831cacf
@ -10,10 +10,10 @@ LABEL org.opencontainers.image.title="Zabbix agent 2" \
|
|||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
RUN set -eux && \
|
RUN set -eux && \
|
||||||
addgroup -S -g 1000 zabbix && \
|
addgroup -S -g 1995 zabbix && \
|
||||||
adduser -S \
|
adduser -S \
|
||||||
-D -G zabbix \
|
-D -G zabbix -G root \
|
||||||
-u 999 \
|
-u 1997 \
|
||||||
-h /var/lib/zabbix/ \
|
-h /var/lib/zabbix/ \
|
||||||
zabbix && \
|
zabbix && \
|
||||||
mkdir -p /etc/zabbix && \
|
mkdir -p /etc/zabbix && \
|
||||||
@ -21,7 +21,6 @@ RUN set -eux && \
|
|||||||
mkdir -p /var/lib/zabbix && \
|
mkdir -p /var/lib/zabbix && \
|
||||||
mkdir -p /var/lib/zabbix/enc && \
|
mkdir -p /var/lib/zabbix/enc && \
|
||||||
mkdir -p /var/lib/zabbix/modules && \
|
mkdir -p /var/lib/zabbix/modules && \
|
||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
|
||||||
apk add --no-cache --clean-protected \
|
apk add --no-cache --clean-protected \
|
||||||
tini \
|
tini \
|
||||||
bash \
|
bash \
|
||||||
@ -75,9 +74,11 @@ RUN set -eux && \
|
|||||||
cp /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
cp /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
||||||
cp /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
cp /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
||||||
cp /tmp/zabbix-${ZBX_VERSION}/src/go/conf/zabbix_agent2.conf /etc/zabbix/zabbix_agent2.conf && \
|
cp /tmp/zabbix-${ZBX_VERSION}/src/go/conf/zabbix_agent2.conf /etc/zabbix/zabbix_agent2.conf && \
|
||||||
chown -R zabbix:zabbix /etc/zabbix/ && \
|
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
|
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
|
||||||
|
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/ && \
|
||||||
apk del --purge --no-network \
|
apk del --purge --no-network \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
@ -92,6 +93,6 @@ COPY ["docker-entrypoint.sh", "/usr/bin/"]
|
|||||||
|
|
||||||
ENTRYPOINT ["/sbin/tini", "--", "/usr/bin/docker-entrypoint.sh"]
|
ENTRYPOINT ["/sbin/tini", "--", "/usr/bin/docker-entrypoint.sh"]
|
||||||
|
|
||||||
USER zabbix
|
USER 1997
|
||||||
|
|
||||||
CMD ["/usr/sbin/zabbix_agent2", "--foreground", "-c", "/etc/zabbix/zabbix_agent2.conf"]
|
CMD ["/usr/sbin/zabbix_agent2", "--foreground", "-c", "/etc/zabbix/zabbix_agent2.conf"]
|
||||||
|
Loading…
Reference in New Issue
Block a user