-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge env variables for standard locations
- Loading branch information
Showing
96 changed files
with
580 additions
and
583 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ ENV TERM=xterm \ | |
ZABBIX_USER_HOME_DIR="/var/lib/zabbix" \ | ||
ZABBIX_CONF_DIR="/etc/zabbix" | ||
|
||
ENV ZBX_LOADMODULEPATH="${ZABBIX_USER_HOME_DIR}/modules" | ||
ENV ZBX_LOADMODULEPATH="${ZABBIX_USER_HOME_DIR}/modules" \ | ||
ZBX_USERPARAMETERDIR=${ZABBIX_USER_HOME_DIR}/user_scripts | ||
|
||
LABEL org.opencontainers.image.authors="Alexey Pustovalov <[email protected]>" \ | ||
org.opencontainers.image.description="Zabbix agent is deployed on a monitoring target to actively monitor local resources and applications" \ | ||
|
@@ -60,14 +61,15 @@ RUN set -eux && \ | |
--uid 1997 \ | ||
--ingroup zabbix \ | ||
--shell /sbin/nologin \ | ||
--home ${ZABBIX_USER_HOME_DIR}/ \ | ||
--home ${ZABBIX_USER_HOME_DIR} \ | ||
zabbix && \ | ||
mkdir -p ${ZABBIX_CONF_DIR} && \ | ||
mkdir -p ${ZABBIX_CONF_DIR}/zabbix_agentd.d && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR} && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc_internal && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/modules && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/user_scripts && \ | ||
chown --quiet -R zabbix:root ${ZABBIX_CONF_DIR}/zabbix_agentd_modules.conf \ | ||
${ZABBIX_CONF_DIR}/zabbix_agentd_item_keys.conf \ | ||
${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ ENV TERM=xterm \ | |
ZABBIX_USER_HOME_DIR="/var/lib/zabbix" \ | ||
ZABBIX_CONF_DIR="/etc/zabbix" | ||
|
||
ENV ZBX_LOADMODULEPATH="${ZABBIX_USER_HOME_DIR}/modules" | ||
ENV ZBX_LOADMODULEPATH="${ZABBIX_USER_HOME_DIR}/modules" \ | ||
ZBX_USERPARAMETERDIR=${ZABBIX_USER_HOME_DIR}/user_scripts | ||
|
||
LABEL org.opencontainers.image.authors="Alexey Pustovalov <[email protected]>" \ | ||
org.opencontainers.image.description="Zabbix agent is deployed on a monitoring target to actively monitor local resources and applications" \ | ||
|
@@ -73,18 +74,20 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \ | |
--gid 1995 \ | ||
zabbix && \ | ||
useradd \ | ||
--system --comment "Zabbix monitoring system" \ | ||
--system \ | ||
--comment "Zabbix monitoring system" \ | ||
-g zabbix \ | ||
--uid 1997 \ | ||
--shell /sbin/nologin \ | ||
--home-dir ${ZABBIX_USER_HOME_DIR} \ | ||
zabbix && \ | ||
mkdir -p ${ZABBIX_CONF_DIR} && \ | ||
mkdir -p ${ZABBIX_CONF_DIR}/ && \ | ||
mkdir -p ${ZABBIX_CONF_DIR}/zabbix_agentd.d && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR} && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc_internal && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/modules && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/user_scripts && \ | ||
chown --quiet -R zabbix:root ${ZABBIX_CONF_DIR}/zabbix_agentd_modules.conf \ | ||
${ZABBIX_CONF_DIR}/zabbix_agentd_item_keys.conf \ | ||
${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ | ||
|
@@ -104,7 +107,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \ | |
|
||
EXPOSE 10050/TCP | ||
|
||
WORKDIR /var/lib/zabbix | ||
WORKDIR ${ZABBIX_USER_HOME_DIR} | ||
|
||
COPY ["docker-entrypoint.sh", "/usr/bin/"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ ENV TERM=xterm \ | |
ZABBIX_USER_HOME_DIR="/var/lib/zabbix" \ | ||
ZABBIX_CONF_DIR="/etc/zabbix" | ||
|
||
ENV ZBX_LOADMODULEPATH="${ZABBIX_USER_HOME_DIR}/modules" | ||
ENV ZBX_LOADMODULEPATH="${ZABBIX_USER_HOME_DIR}/modules" \ | ||
ZBX_USERPARAMETERDIR=${ZABBIX_USER_HOME_DIR}/user_scripts | ||
|
||
LABEL org.opencontainers.image.authors="Alexey Pustovalov <[email protected]>" \ | ||
org.opencontainers.image.description="Zabbix agent is deployed on a monitoring target to actively monitor local resources and applications" \ | ||
|
@@ -67,12 +68,13 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \ | |
--shell /sbin/nologin \ | ||
--home-dir ${ZABBIX_USER_HOME_DIR} \ | ||
zabbix && \ | ||
mkdir -p ${ZABBIX_CONF_DIR} && \ | ||
mkdir -p ${ZABBIX_CONF_DIR}/ && \ | ||
mkdir -p ${ZABBIX_CONF_DIR}/zabbix_agentd.d && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR} && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc_internal && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/modules && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/user_scripts && \ | ||
chown --quiet -R zabbix:root ${ZABBIX_CONF_DIR}/zabbix_agentd_modules.conf \ | ||
${ZABBIX_CONF_DIR}/zabbix_agentd_item_keys.conf \ | ||
${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,8 @@ ENV TERM=xterm \ | |
ZABBIX_USER_HOME_DIR="/var/lib/zabbix" \ | ||
ZABBIX_CONF_DIR="/etc/zabbix" | ||
|
||
ENV ZBX_LOADMODULEPATH="${ZABBIX_USER_HOME_DIR}/modules" | ||
ENV ZBX_LOADMODULEPATH="${ZABBIX_USER_HOME_DIR}/modules" \ | ||
ZBX_USERPARAMETERDIR=${ZABBIX_USER_HOME_DIR}/user_scripts | ||
|
||
LABEL description="Zabbix agent is deployed on a monitoring target to actively monitor local resources and applications" \ | ||
maintainer="[email protected]" \ | ||
|
@@ -105,12 +106,13 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \ | |
--shell /sbin/nologin \ | ||
--home-dir ${ZABBIX_USER_HOME_DIR} \ | ||
zabbix && \ | ||
mkdir -p ${ZABBIX_CONF_DIR} && \ | ||
mkdir -p ${ZABBIX_CONF_DIR}/ && \ | ||
mkdir -p ${ZABBIX_CONF_DIR}/zabbix_agentd.d && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR} && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc_internal && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/modules && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/user_scripts && \ | ||
chown --quiet -R zabbix:root ${ZABBIX_CONF_DIR}/zabbix_agentd_modules.conf \ | ||
${ZABBIX_CONF_DIR}/zabbix_agentd_item_keys.conf \ | ||
${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ | ||
|
@@ -130,7 +132,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \ | |
|
||
EXPOSE 10050/TCP | ||
|
||
WORKDIR /var/lib/zabbix | ||
WORKDIR ${ZABBIX_USER_HOME_DIR} | ||
|
||
COPY ["docker-entrypoint.sh", "/usr/bin/"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ ENV TERM=xterm \ | |
ZABBIX_USER_HOME_DIR="/var/lib/zabbix" \ | ||
ZABBIX_CONF_DIR="/etc/zabbix" | ||
|
||
ENV ZBX_LOADMODULEPATH="${ZABBIX_USER_HOME_DIR}/modules" | ||
ENV ZBX_LOADMODULEPATH="${ZABBIX_USER_HOME_DIR}/modules" \ | ||
ZBX_USERPARAMETERDIR=${ZABBIX_USER_HOME_DIR}/user_scripts | ||
|
||
LABEL org.opencontainers.image.authors="Alexey Pustovalov <[email protected]>" \ | ||
org.opencontainers.image.description="Zabbix agent is deployed on a monitoring target to actively monitor local resources and applications" \ | ||
|
@@ -63,12 +64,13 @@ RUN --mount=type=cache,target=/var/cache/apt/,sharing=locked \ | |
--shell /sbin/nologin \ | ||
--home-dir ${ZABBIX_USER_HOME_DIR} \ | ||
zabbix && \ | ||
mkdir -p ${ZABBIX_CONF_DIR} && \ | ||
mkdir -p ${ZABBIX_CONF_DIR}/ && \ | ||
mkdir -p ${ZABBIX_CONF_DIR}/zabbix_agentd.d && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR} && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc_internal && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/modules && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/user_scripts && \ | ||
chown --quiet -R zabbix:root ${ZABBIX_CONF_DIR}/zabbix_agentd_modules.conf \ | ||
${ZABBIX_CONF_DIR}/zabbix_agentd_item_keys.conf \ | ||
${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ ENV TERM=xterm \ | |
ZABBIX_USER_HOME_DIR="/var/lib/zabbix" \ | ||
ZABBIX_CONF_DIR="/etc/zabbix" | ||
|
||
ENV ZBX_PERSISTENTBUFFERFILE="$ZABBIX_USER_HOME_DIR/buffer/agent2.db" | ||
ENV ZBX_PERSISTENTBUFFERFILE="$ZABBIX_USER_HOME_DIR/buffer/agent2.db" \ | ||
ZBX_USERPARAMETERDIR=${ZABBIX_USER_HOME_DIR}/user_scripts | ||
|
||
LABEL org.opencontainers.image.authors="Alexey Pustovalov <[email protected]>" \ | ||
org.opencontainers.image.description="Zabbix agent 2 is deployed on a monitoring target to actively monitor local resources and applications" \ | ||
|
@@ -67,6 +68,7 @@ RUN set -eux && \ | |
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc_internal && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/buffer && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/user_scripts && \ | ||
chown --quiet -R zabbix:root ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ | ||
${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ | ||
${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ ENV TERM=xterm \ | |
ZABBIX_USER_HOME_DIR="/var/lib/zabbix" \ | ||
ZABBIX_CONF_DIR="/etc/zabbix" | ||
|
||
ENV ZBX_PERSISTENTBUFFERFILE="$ZABBIX_USER_HOME_DIR/buffer/agent2.db" | ||
ENV ZBX_PERSISTENTBUFFERFILE="$ZABBIX_USER_HOME_DIR/buffer/agent2.db" \ | ||
ZBX_USERPARAMETERDIR=${ZABBIX_USER_HOME_DIR}/user_scripts | ||
|
||
LABEL org.opencontainers.image.authors="Alexey Pustovalov <[email protected]>" \ | ||
org.opencontainers.image.description="Zabbix agent 2 is deployed on a monitoring target to actively monitor local resources and applications" \ | ||
|
@@ -88,6 +89,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \ | |
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc_internal && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/buffer && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/user_scripts && \ | ||
chown --quiet -R zabbix:root ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ | ||
${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ | ||
${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ ENV TERM=xterm \ | |
ZABBIX_USER_HOME_DIR="/var/lib/zabbix" \ | ||
ZABBIX_CONF_DIR="/etc/zabbix" | ||
|
||
ENV ZBX_PERSISTENTBUFFERFILE="$ZABBIX_USER_HOME_DIR/buffer/agent2.db" | ||
ENV ZBX_PERSISTENTBUFFERFILE="$ZABBIX_USER_HOME_DIR/buffer/agent2.db" \ | ||
ZBX_USERPARAMETERDIR=${ZABBIX_USER_HOME_DIR}/user_scripts | ||
|
||
LABEL org.opencontainers.image.authors="Alexey Pustovalov <[email protected]>" \ | ||
org.opencontainers.image.description="Zabbix agent 2 is deployed on a monitoring target to actively monitor local resources and applications" \ | ||
|
@@ -75,6 +76,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \ | |
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc_internal && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/buffer && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/user_scripts && \ | ||
chown --quiet -R zabbix:root ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ | ||
${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ | ||
${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,8 @@ ENV TERM=xterm \ | |
ZABBIX_USER_HOME_DIR="/var/lib/zabbix" \ | ||
ZABBIX_CONF_DIR="/etc/zabbix" | ||
|
||
ENV ZBX_PERSISTENTBUFFERFILE="$ZABBIX_USER_HOME_DIR/buffer/agent2.db" | ||
ENV ZBX_PERSISTENTBUFFERFILE="$ZABBIX_USER_HOME_DIR/buffer/agent2.db" \ | ||
ZBX_USERPARAMETERDIR=${ZABBIX_USER_HOME_DIR}/user_scripts | ||
|
||
LABEL description="Zabbix agent 2 is deployed on a monitoring target to actively monitor local resources and applications" \ | ||
maintainer="[email protected]" \ | ||
|
@@ -109,6 +110,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \ | |
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc_internal && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/buffer && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/user_scripts && \ | ||
chown --quiet -R zabbix:root ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ | ||
${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ | ||
${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ ENV TERM=xterm \ | |
ZABBIX_USER_HOME_DIR="/var/lib/zabbix" \ | ||
ZABBIX_CONF_DIR="/etc/zabbix" | ||
|
||
ENV ZBX_PERSISTENTBUFFERFILE="$ZABBIX_USER_HOME_DIR/buffer/agent2.db" | ||
ENV ZBX_PERSISTENTBUFFERFILE="$ZABBIX_USER_HOME_DIR/buffer/agent2.db" \ | ||
ZBX_USERPARAMETERDIR=${ZABBIX_USER_HOME_DIR}/user_scripts | ||
|
||
LABEL org.opencontainers.image.authors="Alexey Pustovalov <[email protected]>" \ | ||
org.opencontainers.image.description="Zabbix agent 2 is deployed on a monitoring target to actively monitor local resources and applications" \ | ||
|
@@ -71,6 +72,7 @@ RUN --mount=type=cache,target=/var/cache/apt/,sharing=locked \ | |
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/enc_internal && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/buffer && \ | ||
mkdir -p ${ZABBIX_USER_HOME_DIR}/user_scripts && \ | ||
chown --quiet -R zabbix:root ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ | ||
${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ | ||
${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ | ||
|
Oops, something went wrong.