mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-08-09 00:24:58 +02:00
Added logging of executed commands
This commit is contained in:
@ -8,7 +8,8 @@ ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
||||
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
||||
|
||||
RUN yum --quiet makecache && \
|
||||
RUN set -eux && \
|
||||
yum --quiet makecache && \
|
||||
yum ${YUM_FLAGS_DEV} install \
|
||||
gettext \
|
||||
git && \
|
||||
@ -54,7 +55,8 @@ STOPSIGNAL SIGTERM
|
||||
|
||||
COPY --from=builder /tmp/zabbix/ /usr/share/zabbix/
|
||||
|
||||
RUN groupadd --system zabbix && \
|
||||
RUN set -eux && \
|
||||
groupadd --system zabbix && \
|
||||
adduser -r --shell /sbin/nologin \
|
||||
-g zabbix \
|
||||
-d /var/lib/zabbix/ \
|
||||
@ -79,7 +81,7 @@ RUN groupadd --system zabbix && \
|
||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||
cut -d"'" -f 2 | sort | \
|
||||
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
||||
yum ${YUM_FLAGS_PERSISTANT} clean all && \
|
||||
yum ${YUM_FLAGS_PERSISTENT} clean all && \
|
||||
rm -rf /var/cache/yum/
|
||||
|
||||
EXPOSE 80/TCP 443/TCP
|
||||
|
Reference in New Issue
Block a user