mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-12-02 04:33:09 +01:00
Removed font processing. Using default font
This commit is contained in:
commit
48604a192d
@ -50,8 +50,7 @@ RUN addgroup zabbix && \
|
|||||||
php7-simplexml \
|
php7-simplexml \
|
||||||
php7-sockets \
|
php7-sockets \
|
||||||
php7-xmlreader \
|
php7-xmlreader \
|
||||||
php7-xmlwriter \
|
php7-xmlwriter && \
|
||||||
ttf-dejavu && \
|
|
||||||
apk add ${APK_FLAGS_PERSISTENT} --no-scripts apache2-ssl && \
|
apk add ${APK_FLAGS_PERSISTENT} --no-scripts apache2-ssl && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
@ -65,8 +64,6 @@ LABEL org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSI
|
|||||||
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
||||||
org.label-schema.docker.cmd="docker run --name zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE} --link mysql-server:mysql --link zabbix-server:zabbix-server -p 80:80 -d zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}:alpine-${ZBX_VERSION}"
|
org.label-schema.docker.cmd="docker run --name zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE} --link mysql-server:mysql --link zabbix-server:zabbix-server -p 80:80 -d zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}:alpine-${ZBX_VERSION}"
|
||||||
|
|
||||||
ADD conf/tmp/font-config /tmp/font-config
|
|
||||||
|
|
||||||
RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
||||||
gettext \
|
gettext \
|
||||||
git && \
|
git && \
|
||||||
@ -76,13 +73,9 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
cp -R /usr/share/zabbix-${ZBX_VERSION}/frontends/php/* /usr/share/zabbix/ && \
|
cp -R /usr/share/zabbix-${ZBX_VERSION}/frontends/php/* /usr/share/zabbix/ && \
|
||||||
rm -rf /usr/share/zabbix-${ZBX_VERSION}/ && \
|
rm -rf /usr/share/zabbix-${ZBX_VERSION}/ && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
|
||||||
rm /tmp/font-config && \
|
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
|
||||||
./locale/make_mo.sh && \
|
./locale/make_mo.sh && \
|
||||||
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
|
||||||
apk del ${APK_FLAGS_COMMON} --purge \
|
apk del ${APK_FLAGS_COMMON} --purge \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
diff -Nru zabbix-2.5.0.orig/frontends/php/include/defines.inc.php zabbix-2.5.0/frontends/php/include/defines.inc.php
|
|
||||||
--- zabbix-2.5.0.orig/frontends/php/include/defines.inc.php 2015-08-19 17:27:39.000000000 +0900
|
|
||||||
+++ zabbix-2.5.0/frontends/php/include/defines.inc.php 2015-08-22 15:20:12.000000000 +0900
|
|
||||||
@@ -51,7 +51,7 @@
|
|
||||||
define('ZBX_WIDGET_ROWS', 20);
|
|
||||||
|
|
||||||
define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18)
|
|
||||||
-define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
|
|
||||||
+define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
|
|
||||||
define('ZBX_GRAPH_LEGEND_HEIGHT', 120); // when graph height is less then this value, some legend will not show up
|
|
||||||
|
|
||||||
define('ZBX_SCRIPT_TIMEOUT', 60); // in seconds
|
|
||||||
@@ -96,7 +96,7 @@
|
|
||||||
define('ZBX_ACK_STS_WITH_UNACK', 2);
|
|
||||||
define('ZBX_ACK_STS_WITH_LAST_UNACK', 3);
|
|
||||||
|
|
||||||
-define('ZBX_FONT_NAME', 'DejaVuSans');
|
|
||||||
+define('ZBX_FONT_NAME', 'graphfont');
|
|
||||||
|
|
||||||
define('ZBX_AUTH_INTERNAL', 0);
|
|
||||||
define('ZBX_AUTH_LDAP', 1);
|
|
@ -8,12 +8,9 @@ ARG ZBX_VERSION=${MAJOR_VERSION}.1
|
|||||||
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
||||||
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
|
||||||
|
|
||||||
RUN yum --quiet makecache && \
|
RUN yum --quiet makecache && \
|
||||||
yum ${YUM_FLAGS_DEV} install \
|
yum ${YUM_FLAGS_DEV} install \
|
||||||
gettext \
|
gettext \
|
||||||
patch \
|
|
||||||
git && \
|
git && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
git clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
|
git clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
|
||||||
@ -21,11 +18,8 @@ RUN yum --quiet makecache && \
|
|||||||
cp -R /tmp/zabbix-${ZBX_VERSION}/frontends/php/* /tmp/zabbix/ && \
|
cp -R /tmp/zabbix-${ZBX_VERSION}/frontends/php/* /tmp/zabbix/ && \
|
||||||
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
|
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
|
||||||
cd /tmp/zabbix/ && \
|
cd /tmp/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
|
||||||
rm /tmp/font-config && \
|
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /tmp/zabbix/fonts/DejaVuSans.ttf && \
|
|
||||||
./locale/make_mo.sh
|
./locale/make_mo.sh
|
||||||
|
|
||||||
FROM centos:centos7
|
FROM centos:centos7
|
||||||
@ -82,7 +76,6 @@ RUN groupadd --system zabbix && \
|
|||||||
php-mbstring \
|
php-mbstring \
|
||||||
php-mysql \
|
php-mysql \
|
||||||
php-xml && \
|
php-xml && \
|
||||||
ln -s /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
|
||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
cut -d"'" -f 2 | sort | \
|
cut -d"'" -f 2 | sort | \
|
||||||
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
diff -Nru zabbix-2.5.0.orig/frontends/php/include/defines.inc.php zabbix-2.5.0/frontends/php/include/defines.inc.php
|
|
||||||
--- zabbix-2.5.0.orig/frontends/php/include/defines.inc.php 2015-08-19 17:27:39.000000000 +0900
|
|
||||||
+++ zabbix-2.5.0/frontends/php/include/defines.inc.php 2015-08-22 15:20:12.000000000 +0900
|
|
||||||
@@ -42,7 +42,7 @@
|
|
||||||
define('ZBX_WIDGET_ROWS', 20);
|
|
||||||
|
|
||||||
define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18)
|
|
||||||
-define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
|
|
||||||
+define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
|
|
||||||
define('ZBX_GRAPH_LEGEND_HEIGHT', 120); // when graph height is less then this value, some legend will not show up
|
|
||||||
|
|
||||||
define('ZBX_SCRIPT_TIMEOUT', 60); // in seconds
|
|
||||||
@@ -90,7 +90,7 @@
|
|
||||||
define('EVENTS_OPTION_ALL', 2);
|
|
||||||
define('EVENTS_OPTION_NOT_ACK', 3);
|
|
||||||
|
|
||||||
-define('ZBX_FONT_NAME', 'DejaVuSans');
|
|
||||||
+define('ZBX_FONT_NAME', 'graphfont');
|
|
||||||
|
|
||||||
define('ZBX_AUTH_INTERNAL', 0);
|
|
||||||
define('ZBX_AUTH_LDAP', 1);
|
|
@ -47,8 +47,7 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
php7.2-ldap \
|
php7.2-ldap \
|
||||||
php7.2-mbstring \
|
php7.2-mbstring \
|
||||||
php7.2-mysql \
|
php7.2-mysql \
|
||||||
php7.2-xml \
|
php7.2-xml && \
|
||||||
ttf-dejavu-core && \
|
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
apt-get ${APT_FLAGS_COMMON} clean && \
|
apt-get ${APT_FLAGS_COMMON} clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
@ -63,12 +62,9 @@ LABEL org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSI
|
|||||||
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
||||||
org.label-schema.docker.cmd="docker run --name zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE} --link mysql-server:mysql --link zabbix-server:zabbix-server -p 80:80 -d zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}:ubuntu-${ZBX_VERSION}"
|
org.label-schema.docker.cmd="docker run --name zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE} --link mysql-server:mysql --link zabbix-server:zabbix-server -p 80:80 -d zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}:ubuntu-${ZBX_VERSION}"
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
|
||||||
|
|
||||||
RUN apt-get ${APT_FLAGS_COMMON} update && \
|
RUN apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_DEV} install \
|
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_DEV} install \
|
||||||
gettext \
|
gettext \
|
||||||
patch \
|
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
git && \
|
git && \
|
||||||
cd /usr/share/ && \
|
cd /usr/share/ && \
|
||||||
@ -77,14 +73,9 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
cp -R /usr/share/zabbix-${ZBX_VERSION}/frontends/php/* /usr/share/zabbix/ && \
|
cp -R /usr/share/zabbix-${ZBX_VERSION}/frontends/php/* /usr/share/zabbix/ && \
|
||||||
rm -rf /usr/share/zabbix-${ZBX_VERSION}/ && \
|
rm -rf /usr/share/zabbix-${ZBX_VERSION}/ && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
|
||||||
rm /tmp/font-config && \
|
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
|
||||||
./locale/make_mo.sh && \
|
./locale/make_mo.sh && \
|
||||||
update-alternatives --install /usr/share/zabbix/fonts/graphfont.ttf \
|
|
||||||
zabbix-frontend-font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 10 && \
|
|
||||||
mkdir -p /var/lib/locales/supported.d/ && \
|
mkdir -p /var/lib/locales/supported.d/ && \
|
||||||
rm -f /var/lib/locales/supported.d/local && \
|
rm -f /var/lib/locales/supported.d/local && \
|
||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
@ -95,7 +86,6 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_COMMON} purge \
|
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_COMMON} purge \
|
||||||
gettext \
|
gettext \
|
||||||
patch \
|
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
git && \
|
git && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
diff -Nru zabbix-2.5.0.orig/frontends/php/include/defines.inc.php zabbix-2.5.0/frontends/php/include/defines.inc.php
|
|
||||||
--- zabbix-2.5.0.orig/frontends/php/include/defines.inc.php 2015-08-19 17:27:39.000000000 +0900
|
|
||||||
+++ zabbix-2.5.0/frontends/php/include/defines.inc.php 2015-08-22 15:20:12.000000000 +0900
|
|
||||||
@@ -42,7 +42,7 @@
|
|
||||||
define('ZBX_WIDGET_ROWS', 20);
|
|
||||||
|
|
||||||
define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18)
|
|
||||||
-define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
|
|
||||||
+define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
|
|
||||||
define('ZBX_GRAPH_LEGEND_HEIGHT', 120); // when graph height is less then this value, some legend will not show up
|
|
||||||
|
|
||||||
define('ZBX_SCRIPT_TIMEOUT', 60); // in seconds
|
|
||||||
@@ -90,7 +90,7 @@
|
|
||||||
define('EVENTS_OPTION_ALL', 2);
|
|
||||||
define('EVENTS_OPTION_NOT_ACK', 3);
|
|
||||||
|
|
||||||
-define('ZBX_FONT_NAME', 'DejaVuSans');
|
|
||||||
+define('ZBX_FONT_NAME', 'graphfont');
|
|
||||||
|
|
||||||
define('ZBX_AUTH_INTERNAL', 0);
|
|
||||||
define('ZBX_AUTH_LDAP', 1);
|
|
@ -49,8 +49,7 @@ RUN addgroup zabbix && \
|
|||||||
php7-sockets \
|
php7-sockets \
|
||||||
php7-xmlreader \
|
php7-xmlreader \
|
||||||
php7-xmlwriter \
|
php7-xmlwriter \
|
||||||
postgresql-client \
|
postgresql-client && \
|
||||||
ttf-dejavu && \
|
|
||||||
apk add ${APK_FLAGS_PERSISTENT} --no-scripts apache2-ssl && \
|
apk add ${APK_FLAGS_PERSISTENT} --no-scripts apache2-ssl && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
@ -64,8 +63,6 @@ LABEL org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSI
|
|||||||
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
||||||
org.label-schema.docker.cmd="docker run --name zabbix-web-${ZBX_OPT_TYPE}-pgsql --link postgres-server:postgres --link zabbix-server:zabbix-server -p 80:80 -d zabbix-web-${ZBX_OPT_TYPE}-pgsql:alpine-${ZBX_VERSION}"
|
org.label-schema.docker.cmd="docker run --name zabbix-web-${ZBX_OPT_TYPE}-pgsql --link postgres-server:postgres --link zabbix-server:zabbix-server -p 80:80 -d zabbix-web-${ZBX_OPT_TYPE}-pgsql:alpine-${ZBX_VERSION}"
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
|
||||||
|
|
||||||
RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
||||||
gettext \
|
gettext \
|
||||||
git && \
|
git && \
|
||||||
@ -75,13 +72,9 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
cp -R /usr/share/zabbix-${ZBX_VERSION}/frontends/php/* /usr/share/zabbix/ && \
|
cp -R /usr/share/zabbix-${ZBX_VERSION}/frontends/php/* /usr/share/zabbix/ && \
|
||||||
rm -rf /usr/share/zabbix-${ZBX_VERSION}/ && \
|
rm -rf /usr/share/zabbix-${ZBX_VERSION}/ && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
|
||||||
rm /tmp/font-config && \
|
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
|
||||||
./locale/make_mo.sh && \
|
./locale/make_mo.sh && \
|
||||||
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
|
||||||
apk del ${APK_FLAGS_COMMON} --purge \
|
apk del ${APK_FLAGS_COMMON} --purge \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
diff -Nru zabbix-2.5.0.orig/frontends/php/include/defines.inc.php zabbix-2.5.0/frontends/php/include/defines.inc.php
|
|
||||||
--- zabbix-2.5.0.orig/frontends/php/include/defines.inc.php 2015-08-19 17:27:39.000000000 +0900
|
|
||||||
+++ zabbix-2.5.0/frontends/php/include/defines.inc.php 2015-08-22 15:20:12.000000000 +0900
|
|
||||||
@@ -51,7 +51,7 @@
|
|
||||||
define('ZBX_WIDGET_ROWS', 20);
|
|
||||||
|
|
||||||
define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18)
|
|
||||||
-define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
|
|
||||||
+define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
|
|
||||||
define('ZBX_GRAPH_LEGEND_HEIGHT', 120); // when graph height is less then this value, some legend will not show up
|
|
||||||
|
|
||||||
define('ZBX_SCRIPT_TIMEOUT', 60); // in seconds
|
|
||||||
@@ -96,7 +96,7 @@
|
|
||||||
define('ZBX_ACK_STS_WITH_UNACK', 2);
|
|
||||||
define('ZBX_ACK_STS_WITH_LAST_UNACK', 3);
|
|
||||||
|
|
||||||
-define('ZBX_FONT_NAME', 'DejaVuSans');
|
|
||||||
+define('ZBX_FONT_NAME', 'graphfont');
|
|
||||||
|
|
||||||
define('ZBX_AUTH_INTERNAL', 0);
|
|
||||||
define('ZBX_AUTH_LDAP', 1);
|
|
@ -8,8 +8,6 @@ ARG ZBX_VERSION=${MAJOR_VERSION}.1
|
|||||||
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
||||||
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
|
||||||
|
|
||||||
RUN yum --quiet makecache && \
|
RUN yum --quiet makecache && \
|
||||||
yum ${YUM_FLAGS_DEV} install \
|
yum ${YUM_FLAGS_DEV} install \
|
||||||
gettext \
|
gettext \
|
||||||
@ -21,11 +19,8 @@ RUN yum --quiet makecache && \
|
|||||||
cp -R /tmp/zabbix-${ZBX_VERSION}/frontends/php/* /tmp/zabbix/ && \
|
cp -R /tmp/zabbix-${ZBX_VERSION}/frontends/php/* /tmp/zabbix/ && \
|
||||||
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
|
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
|
||||||
cd /tmp/zabbix/ && \
|
cd /tmp/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
|
||||||
rm /tmp/font-config && \
|
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /tmp/zabbix/fonts/DejaVuSans.ttf && \
|
|
||||||
./locale/make_mo.sh
|
./locale/make_mo.sh
|
||||||
|
|
||||||
FROM centos:centos7
|
FROM centos:centos7
|
||||||
@ -71,7 +66,6 @@ RUN groupadd --system zabbix && \
|
|||||||
yum ${YUM_FLAGS_COMMON} makecache && \
|
yum ${YUM_FLAGS_COMMON} makecache && \
|
||||||
yum ${YUM_FLAGS_PERSISTENT} install epel-release && \
|
yum ${YUM_FLAGS_PERSISTENT} install epel-release && \
|
||||||
yum ${YUM_FLAGS_PERSISTENT} install \
|
yum ${YUM_FLAGS_PERSISTENT} install \
|
||||||
dejavu-sans-fonts \
|
|
||||||
curl \
|
curl \
|
||||||
httpd \
|
httpd \
|
||||||
mod_ssl \
|
mod_ssl \
|
||||||
@ -83,7 +77,6 @@ RUN groupadd --system zabbix && \
|
|||||||
php-pgsql \
|
php-pgsql \
|
||||||
php-xml \
|
php-xml \
|
||||||
postgresql && \
|
postgresql && \
|
||||||
ln -s /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
|
||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
cut -d"'" -f 2 | sort | \
|
cut -d"'" -f 2 | sort | \
|
||||||
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
diff -Nru zabbix-2.5.0.orig/frontends/php/include/defines.inc.php zabbix-2.5.0/frontends/php/include/defines.inc.php
|
|
||||||
--- zabbix-2.5.0.orig/frontends/php/include/defines.inc.php 2015-08-19 17:27:39.000000000 +0900
|
|
||||||
+++ zabbix-2.5.0/frontends/php/include/defines.inc.php 2015-08-22 15:20:12.000000000 +0900
|
|
||||||
@@ -42,7 +42,7 @@
|
|
||||||
define('ZBX_WIDGET_ROWS', 20);
|
|
||||||
|
|
||||||
define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18)
|
|
||||||
-define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
|
|
||||||
+define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
|
|
||||||
define('ZBX_GRAPH_LEGEND_HEIGHT', 120); // when graph height is less then this value, some legend will not show up
|
|
||||||
|
|
||||||
define('ZBX_SCRIPT_TIMEOUT', 60); // in seconds
|
|
||||||
@@ -90,7 +90,7 @@
|
|
||||||
define('EVENTS_OPTION_ALL', 2);
|
|
||||||
define('EVENTS_OPTION_NOT_ACK', 3);
|
|
||||||
|
|
||||||
-define('ZBX_FONT_NAME', 'DejaVuSans');
|
|
||||||
+define('ZBX_FONT_NAME', 'graphfont');
|
|
||||||
|
|
||||||
define('ZBX_AUTH_INTERNAL', 0);
|
|
||||||
define('ZBX_AUTH_LDAP', 1);
|
|
@ -1,21 +0,0 @@
|
|||||||
diff -Nru zabbix-2.5.0.orig/frontends/php/include/defines.inc.php zabbix-2.5.0/frontends/php/include/defines.inc.php
|
|
||||||
--- zabbix-2.5.0.orig/frontends/php/include/defines.inc.php 2015-08-19 17:27:39.000000000 +0900
|
|
||||||
+++ zabbix-2.5.0/frontends/php/include/defines.inc.php 2015-08-22 15:20:12.000000000 +0900
|
|
||||||
@@ -42,7 +42,7 @@
|
|
||||||
define('ZBX_WIDGET_ROWS', 20);
|
|
||||||
|
|
||||||
define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18)
|
|
||||||
-define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
|
|
||||||
+define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
|
|
||||||
define('ZBX_GRAPH_LEGEND_HEIGHT', 120); // when graph height is less then this value, some legend will not show up
|
|
||||||
|
|
||||||
define('ZBX_SCRIPT_TIMEOUT', 60); // in seconds
|
|
||||||
@@ -90,7 +90,7 @@
|
|
||||||
define('EVENTS_OPTION_ALL', 2);
|
|
||||||
define('EVENTS_OPTION_NOT_ACK', 3);
|
|
||||||
|
|
||||||
-define('ZBX_FONT_NAME', 'DejaVuSans');
|
|
||||||
+define('ZBX_FONT_NAME', 'graphfont');
|
|
||||||
|
|
||||||
define('ZBX_AUTH_INTERNAL', 0);
|
|
||||||
define('ZBX_AUTH_LDAP', 1);
|
|
@ -51,8 +51,7 @@ RUN addgroup zabbix && \
|
|||||||
php7-sockets \
|
php7-sockets \
|
||||||
php7-xmlreader \
|
php7-xmlreader \
|
||||||
php7-xmlwriter \
|
php7-xmlwriter \
|
||||||
supervisor \
|
supervisor && \
|
||||||
ttf-dejavu && \
|
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
ARG MAJOR_VERSION=4.2
|
ARG MAJOR_VERSION=4.2
|
||||||
@ -65,8 +64,6 @@ LABEL org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSI
|
|||||||
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
||||||
org.label-schema.docker.cmd="docker run --name zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE} --link mysql-server:mysql --link zabbix-server:zabbix-server -p 80:80 -d zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}:alpine-${ZBX_VERSION}"
|
org.label-schema.docker.cmd="docker run --name zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE} --link mysql-server:mysql --link zabbix-server:zabbix-server -p 80:80 -d zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}:alpine-${ZBX_VERSION}"
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
|
||||||
|
|
||||||
RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
||||||
coreutils \
|
coreutils \
|
||||||
gettext \
|
gettext \
|
||||||
@ -77,13 +74,9 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
cp -R /usr/share/zabbix-${ZBX_VERSION}/frontends/php/* /usr/share/zabbix/ && \
|
cp -R /usr/share/zabbix-${ZBX_VERSION}/frontends/php/* /usr/share/zabbix/ && \
|
||||||
rm -rf /usr/share/zabbix-${ZBX_VERSION}/ && \
|
rm -rf /usr/share/zabbix-${ZBX_VERSION}/ && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
|
||||||
rm /tmp/font-config && \
|
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
|
||||||
./locale/make_mo.sh && \
|
./locale/make_mo.sh && \
|
||||||
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
|
||||||
apk del ${APK_FLAGS_COMMON} --purge \
|
apk del ${APK_FLAGS_COMMON} --purge \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
diff -Nru zabbix-2.5.0.orig/frontends/php/include/defines.inc.php zabbix-2.5.0/frontends/php/include/defines.inc.php
|
|
||||||
--- zabbix-2.5.0.orig/frontends/php/include/defines.inc.php 2015-08-19 17:27:39.000000000 +0900
|
|
||||||
+++ zabbix-2.5.0/frontends/php/include/defines.inc.php 2015-08-22 15:20:12.000000000 +0900
|
|
||||||
@@ -51,7 +51,7 @@
|
|
||||||
define('ZBX_WIDGET_ROWS', 20);
|
|
||||||
|
|
||||||
define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18)
|
|
||||||
-define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
|
|
||||||
+define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
|
|
||||||
define('ZBX_GRAPH_LEGEND_HEIGHT', 120); // when graph height is less then this value, some legend will not show up
|
|
||||||
|
|
||||||
define('ZBX_SCRIPT_TIMEOUT', 60); // in seconds
|
|
||||||
@@ -96,7 +96,7 @@
|
|
||||||
define('ZBX_ACK_STS_WITH_UNACK', 2);
|
|
||||||
define('ZBX_ACK_STS_WITH_LAST_UNACK', 3);
|
|
||||||
|
|
||||||
-define('ZBX_FONT_NAME', 'DejaVuSans');
|
|
||||||
+define('ZBX_FONT_NAME', 'graphfont');
|
|
||||||
|
|
||||||
define('ZBX_AUTH_INTERNAL', 0);
|
|
||||||
define('ZBX_AUTH_LDAP', 1);
|
|
@ -9,8 +9,6 @@ ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
|||||||
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx
|
ZBX_TYPE=frontend ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
|
||||||
|
|
||||||
RUN yum --quiet makecache && \
|
RUN yum --quiet makecache && \
|
||||||
yum ${YUM_FLAGS_DEV} install \
|
yum ${YUM_FLAGS_DEV} install \
|
||||||
gettext \
|
gettext \
|
||||||
@ -22,11 +20,8 @@ RUN yum --quiet makecache && \
|
|||||||
cp -R /tmp/zabbix-${ZBX_VERSION}/frontends/php/* /tmp/zabbix/ && \
|
cp -R /tmp/zabbix-${ZBX_VERSION}/frontends/php/* /tmp/zabbix/ && \
|
||||||
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
|
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
|
||||||
cd /tmp/zabbix/ && \
|
cd /tmp/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
|
||||||
rm /tmp/font-config && \
|
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /tmp/zabbix/fonts/DejaVuSans.ttf && \
|
|
||||||
./locale/make_mo.sh
|
./locale/make_mo.sh
|
||||||
|
|
||||||
FROM centos:centos7
|
FROM centos:centos7
|
||||||
@ -72,7 +67,6 @@ RUN groupadd --system zabbix && \
|
|||||||
yum ${YUM_FLAGS_COMMON} makecache && \
|
yum ${YUM_FLAGS_COMMON} makecache && \
|
||||||
yum ${YUM_FLAGS_PERSISTENT} install epel-release && \
|
yum ${YUM_FLAGS_PERSISTENT} install epel-release && \
|
||||||
yum ${YUM_FLAGS_PERSISTENT} install \
|
yum ${YUM_FLAGS_PERSISTENT} install \
|
||||||
dejavu-sans-fonts \
|
|
||||||
curl \
|
curl \
|
||||||
mariadb \
|
mariadb \
|
||||||
nginx \
|
nginx \
|
||||||
@ -84,7 +78,6 @@ RUN groupadd --system zabbix && \
|
|||||||
php-mysql \
|
php-mysql \
|
||||||
php-xml \
|
php-xml \
|
||||||
supervisor && \
|
supervisor && \
|
||||||
ln -s /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
|
||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
cut -d"'" -f 2 | sort | \
|
cut -d"'" -f 2 | sort | \
|
||||||
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
diff -Nru zabbix-2.5.0.orig/frontends/php/include/defines.inc.php zabbix-2.5.0/frontends/php/include/defines.inc.php
|
|
||||||
--- zabbix-2.5.0.orig/frontends/php/include/defines.inc.php 2015-08-19 17:27:39.000000000 +0900
|
|
||||||
+++ zabbix-2.5.0/frontends/php/include/defines.inc.php 2015-08-22 15:20:12.000000000 +0900
|
|
||||||
@@ -42,7 +42,7 @@
|
|
||||||
define('ZBX_WIDGET_ROWS', 20);
|
|
||||||
|
|
||||||
define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18)
|
|
||||||
-define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
|
|
||||||
+define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
|
|
||||||
define('ZBX_GRAPH_LEGEND_HEIGHT', 120); // when graph height is less then this value, some legend will not show up
|
|
||||||
|
|
||||||
define('ZBX_SCRIPT_TIMEOUT', 60); // in seconds
|
|
||||||
@@ -90,7 +90,7 @@
|
|
||||||
define('EVENTS_OPTION_ALL', 2);
|
|
||||||
define('EVENTS_OPTION_NOT_ACK', 3);
|
|
||||||
|
|
||||||
-define('ZBX_FONT_NAME', 'DejaVuSans');
|
|
||||||
+define('ZBX_FONT_NAME', 'graphfont');
|
|
||||||
|
|
||||||
define('ZBX_AUTH_INTERNAL', 0);
|
|
||||||
define('ZBX_AUTH_LDAP', 1);
|
|
@ -63,8 +63,7 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
php7.2-mbstring \
|
php7.2-mbstring \
|
||||||
php7.2-mysql \
|
php7.2-mysql \
|
||||||
php7.2-xml \
|
php7.2-xml \
|
||||||
supervisor \
|
supervisor && \
|
||||||
ttf-dejavu-core && \
|
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_COMMON} purge \
|
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_COMMON} purge \
|
||||||
wget && \
|
wget && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
@ -84,12 +83,9 @@ LABEL org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSI
|
|||||||
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
||||||
org.label-schema.docker.cmd="docker run --name zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE} --link mysql-server:mysql --link zabbix-server:zabbix-server -p 80:80 -d zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}:ubuntu-${ZBX_VERSION}"
|
org.label-schema.docker.cmd="docker run --name zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE} --link mysql-server:mysql --link zabbix-server:zabbix-server -p 80:80 -d zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}:ubuntu-${ZBX_VERSION}"
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
|
||||||
|
|
||||||
RUN apt-get ${APT_FLAGS_COMMON} update && \
|
RUN apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_DEV} install \
|
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_DEV} install \
|
||||||
gettext \
|
gettext \
|
||||||
patch \
|
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
git && \
|
git && \
|
||||||
cd /usr/share/ && \
|
cd /usr/share/ && \
|
||||||
@ -98,14 +94,9 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
cp -R /usr/share/zabbix-${ZBX_VERSION}/frontends/php/* /usr/share/zabbix/ && \
|
cp -R /usr/share/zabbix-${ZBX_VERSION}/frontends/php/* /usr/share/zabbix/ && \
|
||||||
rm -rf /usr/share/zabbix-${ZBX_VERSION}/ && \
|
rm -rf /usr/share/zabbix-${ZBX_VERSION}/ && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
|
||||||
rm /tmp/font-config && \
|
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
|
||||||
./locale/make_mo.sh && \
|
./locale/make_mo.sh && \
|
||||||
update-alternatives --install /usr/share/zabbix/fonts/graphfont.ttf \
|
|
||||||
zabbix-frontend-font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 10 && \
|
|
||||||
mkdir -p /var/lib/locales/supported.d/ && \
|
mkdir -p /var/lib/locales/supported.d/ && \
|
||||||
rm -f /var/lib/locales/supported.d/local && \
|
rm -f /var/lib/locales/supported.d/local && \
|
||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
@ -116,7 +107,6 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_COMMON} purge \
|
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_COMMON} purge \
|
||||||
gettext \
|
gettext \
|
||||||
patch \
|
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
git && \
|
git && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
diff -Nru zabbix-2.5.0.orig/frontends/php/include/defines.inc.php zabbix-2.5.0/frontends/php/include/defines.inc.php
|
|
||||||
--- zabbix-2.5.0.orig/frontends/php/include/defines.inc.php 2015-08-19 17:27:39.000000000 +0900
|
|
||||||
+++ zabbix-2.5.0/frontends/php/include/defines.inc.php 2015-08-22 15:20:12.000000000 +0900
|
|
||||||
@@ -42,7 +42,7 @@
|
|
||||||
define('ZBX_WIDGET_ROWS', 20);
|
|
||||||
|
|
||||||
define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18)
|
|
||||||
-define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
|
|
||||||
+define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
|
|
||||||
define('ZBX_GRAPH_LEGEND_HEIGHT', 120); // when graph height is less then this value, some legend will not show up
|
|
||||||
|
|
||||||
define('ZBX_SCRIPT_TIMEOUT', 60); // in seconds
|
|
||||||
@@ -90,7 +90,7 @@
|
|
||||||
define('EVENTS_OPTION_ALL', 2);
|
|
||||||
define('EVENTS_OPTION_NOT_ACK', 3);
|
|
||||||
|
|
||||||
-define('ZBX_FONT_NAME', 'DejaVuSans');
|
|
||||||
+define('ZBX_FONT_NAME', 'graphfont');
|
|
||||||
|
|
||||||
define('ZBX_AUTH_INTERNAL', 0);
|
|
||||||
define('ZBX_AUTH_LDAP', 1);
|
|
@ -50,8 +50,7 @@ RUN addgroup zabbix && \
|
|||||||
php7-xmlreader \
|
php7-xmlreader \
|
||||||
php7-xmlwriter \
|
php7-xmlwriter \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
supervisor \
|
supervisor && \
|
||||||
ttf-dejavu && \
|
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
ARG MAJOR_VERSION=4.2
|
ARG MAJOR_VERSION=4.2
|
||||||
@ -64,8 +63,6 @@ LABEL org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSI
|
|||||||
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
||||||
org.label-schema.docker.cmd="docker run --name zabbix-web-${ZBX_OPT_TYPE}-pgsql --link postgres-server:postgres --link zabbix-server:zabbix-server -p 80:80 -d zabbix-web-${ZBX_OPT_TYPE}-pgsql:alpine-${ZBX_VERSION}"
|
org.label-schema.docker.cmd="docker run --name zabbix-web-${ZBX_OPT_TYPE}-pgsql --link postgres-server:postgres --link zabbix-server:zabbix-server -p 80:80 -d zabbix-web-${ZBX_OPT_TYPE}-pgsql:alpine-${ZBX_VERSION}"
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
|
||||||
|
|
||||||
RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
||||||
coreutils \
|
coreutils \
|
||||||
gettext \
|
gettext \
|
||||||
@ -76,13 +73,9 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
cp -R /usr/share/zabbix-${ZBX_VERSION}/frontends/php/* /usr/share/zabbix/ && \
|
cp -R /usr/share/zabbix-${ZBX_VERSION}/frontends/php/* /usr/share/zabbix/ && \
|
||||||
rm -rf /usr/share/zabbix-${ZBX_VERSION}/ && \
|
rm -rf /usr/share/zabbix-${ZBX_VERSION}/ && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
|
||||||
rm /tmp/font-config && \
|
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
|
||||||
./locale/make_mo.sh && \
|
./locale/make_mo.sh && \
|
||||||
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
|
||||||
apk del ${APK_FLAGS_COMMON} --purge \
|
apk del ${APK_FLAGS_COMMON} --purge \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
diff -Nru zabbix-2.5.0.orig/frontends/php/include/defines.inc.php zabbix-2.5.0/frontends/php/include/defines.inc.php
|
|
||||||
--- zabbix-2.5.0.orig/frontends/php/include/defines.inc.php 2015-08-19 17:27:39.000000000 +0900
|
|
||||||
+++ zabbix-2.5.0/frontends/php/include/defines.inc.php 2015-08-22 15:20:12.000000000 +0900
|
|
||||||
@@ -51,7 +51,7 @@
|
|
||||||
define('ZBX_WIDGET_ROWS', 20);
|
|
||||||
|
|
||||||
define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18)
|
|
||||||
-define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
|
|
||||||
+define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
|
|
||||||
define('ZBX_GRAPH_LEGEND_HEIGHT', 120); // when graph height is less then this value, some legend will not show up
|
|
||||||
|
|
||||||
define('ZBX_SCRIPT_TIMEOUT', 60); // in seconds
|
|
||||||
@@ -96,7 +96,7 @@
|
|
||||||
define('ZBX_ACK_STS_WITH_UNACK', 2);
|
|
||||||
define('ZBX_ACK_STS_WITH_LAST_UNACK', 3);
|
|
||||||
|
|
||||||
-define('ZBX_FONT_NAME', 'DejaVuSans');
|
|
||||||
+define('ZBX_FONT_NAME', 'graphfont');
|
|
||||||
|
|
||||||
define('ZBX_AUTH_INTERNAL', 0);
|
|
||||||
define('ZBX_AUTH_LDAP', 1);
|
|
@ -9,12 +9,9 @@ ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
|||||||
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=nginx
|
ZBX_TYPE=frontend ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=nginx
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
|
||||||
|
|
||||||
RUN yum --quiet makecache && \
|
RUN yum --quiet makecache && \
|
||||||
yum ${YUM_FLAGS_DEV} install \
|
yum ${YUM_FLAGS_DEV} install \
|
||||||
gettext \
|
gettext \
|
||||||
patch \
|
|
||||||
git && \
|
git && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
git clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
|
git clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
|
||||||
@ -22,11 +19,8 @@ RUN yum --quiet makecache && \
|
|||||||
cp -R /tmp/zabbix-${ZBX_VERSION}/frontends/php/* /tmp/zabbix/ && \
|
cp -R /tmp/zabbix-${ZBX_VERSION}/frontends/php/* /tmp/zabbix/ && \
|
||||||
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
|
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
|
||||||
cd /tmp/zabbix/ && \
|
cd /tmp/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
|
||||||
rm /tmp/font-config && \
|
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /tmp/zabbix/fonts/DejaVuSans.ttf && \
|
|
||||||
./locale/make_mo.sh
|
./locale/make_mo.sh
|
||||||
|
|
||||||
FROM centos:centos7
|
FROM centos:centos7
|
||||||
@ -72,7 +66,6 @@ RUN groupadd --system zabbix && \
|
|||||||
yum ${YUM_FLAGS_COMMON} makecache && \
|
yum ${YUM_FLAGS_COMMON} makecache && \
|
||||||
yum ${YUM_FLAGS_PERSISTENT} install epel-release && \
|
yum ${YUM_FLAGS_PERSISTENT} install epel-release && \
|
||||||
yum ${YUM_FLAGS_PERSISTENT} install supervisor \
|
yum ${YUM_FLAGS_PERSISTENT} install supervisor \
|
||||||
dejavu-sans-fonts \
|
|
||||||
curl \
|
curl \
|
||||||
nginx \
|
nginx \
|
||||||
postgresql \
|
postgresql \
|
||||||
@ -83,7 +76,6 @@ RUN groupadd --system zabbix && \
|
|||||||
php-mbstring \
|
php-mbstring \
|
||||||
php-pgsql \
|
php-pgsql \
|
||||||
php-xml && \
|
php-xml && \
|
||||||
ln -s /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
|
||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
cut -d"'" -f 2 | sort | \
|
cut -d"'" -f 2 | sort | \
|
||||||
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
diff -Nru zabbix-2.5.0.orig/frontends/php/include/defines.inc.php zabbix-2.5.0/frontends/php/include/defines.inc.php
|
|
||||||
--- zabbix-2.5.0.orig/frontends/php/include/defines.inc.php 2015-08-19 17:27:39.000000000 +0900
|
|
||||||
+++ zabbix-2.5.0/frontends/php/include/defines.inc.php 2015-08-22 15:20:12.000000000 +0900
|
|
||||||
@@ -42,7 +42,7 @@
|
|
||||||
define('ZBX_WIDGET_ROWS', 20);
|
|
||||||
|
|
||||||
define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18)
|
|
||||||
-define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
|
|
||||||
+define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
|
|
||||||
define('ZBX_GRAPH_LEGEND_HEIGHT', 120); // when graph height is less then this value, some legend will not show up
|
|
||||||
|
|
||||||
define('ZBX_SCRIPT_TIMEOUT', 60); // in seconds
|
|
||||||
@@ -90,7 +90,7 @@
|
|
||||||
define('EVENTS_OPTION_ALL', 2);
|
|
||||||
define('EVENTS_OPTION_NOT_ACK', 3);
|
|
||||||
|
|
||||||
-define('ZBX_FONT_NAME', 'DejaVuSans');
|
|
||||||
+define('ZBX_FONT_NAME', 'graphfont');
|
|
||||||
|
|
||||||
define('ZBX_AUTH_INTERNAL', 0);
|
|
||||||
define('ZBX_AUTH_LDAP', 1);
|
|
@ -63,8 +63,7 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
php7.2-xml \
|
php7.2-xml \
|
||||||
php7.2-pgsql \
|
php7.2-pgsql \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
supervisor \
|
supervisor && \
|
||||||
ttf-dejavu-core && \
|
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_COMMON} purge \
|
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_COMMON} purge \
|
||||||
wget && \
|
wget && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
@ -84,12 +83,9 @@ LABEL org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSI
|
|||||||
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
||||||
org.label-schema.docker.cmd="docker run --name zabbix-web-${ZBX_OPT_TYPE}-pgsql --link postgres-server:postgres --link zabbix-server:zabbix-server -p 80:80 -d zabbix-web-${ZBX_OPT_TYPE}-pgsql:ubuntu-${ZBX_VERSION}"
|
org.label-schema.docker.cmd="docker run --name zabbix-web-${ZBX_OPT_TYPE}-pgsql --link postgres-server:postgres --link zabbix-server:zabbix-server -p 80:80 -d zabbix-web-${ZBX_OPT_TYPE}-pgsql:ubuntu-${ZBX_VERSION}"
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
|
||||||
|
|
||||||
RUN apt-get ${APT_FLAGS_COMMON} update && \
|
RUN apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_DEV} install \
|
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_DEV} install \
|
||||||
gettext \
|
gettext \
|
||||||
patch \
|
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
git && \
|
git && \
|
||||||
cd /usr/share/ && \
|
cd /usr/share/ && \
|
||||||
@ -98,14 +94,9 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
cp -R /usr/share/zabbix-${ZBX_VERSION}/frontends/php/* /usr/share/zabbix/ && \
|
cp -R /usr/share/zabbix-${ZBX_VERSION}/frontends/php/* /usr/share/zabbix/ && \
|
||||||
rm -rf /usr/share/zabbix-${ZBX_VERSION}/ && \
|
rm -rf /usr/share/zabbix-${ZBX_VERSION}/ && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
|
||||||
rm /tmp/font-config && \
|
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
|
||||||
./locale/make_mo.sh && \
|
./locale/make_mo.sh && \
|
||||||
update-alternatives --install /usr/share/zabbix/fonts/graphfont.ttf \
|
|
||||||
zabbix-frontend-font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 10 && \
|
|
||||||
mkdir -p /var/lib/locales/supported.d/ && \
|
mkdir -p /var/lib/locales/supported.d/ && \
|
||||||
rm -f /var/lib/locales/supported.d/local && \
|
rm -f /var/lib/locales/supported.d/local && \
|
||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
@ -116,7 +107,6 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_COMMON} purge \
|
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_COMMON} purge \
|
||||||
gettext \
|
gettext \
|
||||||
patch \
|
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
git && \
|
git && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
diff -Nru zabbix-2.5.0.orig/frontends/php/include/defines.inc.php zabbix-2.5.0/frontends/php/include/defines.inc.php
|
|
||||||
--- zabbix-2.5.0.orig/frontends/php/include/defines.inc.php 2015-08-19 17:27:39.000000000 +0900
|
|
||||||
+++ zabbix-2.5.0/frontends/php/include/defines.inc.php 2015-08-22 15:20:12.000000000 +0900
|
|
||||||
@@ -42,7 +42,7 @@
|
|
||||||
define('ZBX_WIDGET_ROWS', 20);
|
|
||||||
|
|
||||||
define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18)
|
|
||||||
-define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
|
|
||||||
+define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
|
|
||||||
define('ZBX_GRAPH_LEGEND_HEIGHT', 120); // when graph height is less then this value, some legend will not show up
|
|
||||||
|
|
||||||
define('ZBX_SCRIPT_TIMEOUT', 60); // in seconds
|
|
||||||
@@ -90,7 +90,7 @@
|
|
||||||
define('EVENTS_OPTION_ALL', 2);
|
|
||||||
define('EVENTS_OPTION_NOT_ACK', 3);
|
|
||||||
|
|
||||||
-define('ZBX_FONT_NAME', 'DejaVuSans');
|
|
||||||
+define('ZBX_FONT_NAME', 'graphfont');
|
|
||||||
|
|
||||||
define('ZBX_AUTH_INTERNAL', 0);
|
|
||||||
define('ZBX_AUTH_LDAP', 1);
|
|
@ -11,8 +11,6 @@ ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
|||||||
ZBX_TYPE=server ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx \
|
ZBX_TYPE=server ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx \
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD=true ZBX_ADD_SERVER=true ZBX_ADD_WEB=true DB_SERVER_HOST=localhost MYSQL_USER=zabbix ZBX_ADD_JAVA_GATEWAY=true ZBX_JAVAGATEWAY_ENABLE=true ZBX_JAVAGATEWAY=localhost
|
MYSQL_ALLOW_EMPTY_PASSWORD=true ZBX_ADD_SERVER=true ZBX_ADD_WEB=true DB_SERVER_HOST=localhost MYSQL_USER=zabbix ZBX_ADD_JAVA_GATEWAY=true ZBX_JAVAGATEWAY_ENABLE=true ZBX_JAVAGATEWAY=localhost
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
|
||||||
|
|
||||||
RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
||||||
bash \
|
bash \
|
||||||
alpine-sdk \
|
alpine-sdk \
|
||||||
@ -70,10 +68,8 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
gzip database/${ZBX_DB_TYPE}/create.sql && \
|
gzip database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
rm -rf /tmp/zabbix-${ZBX_VERSION}/src/zabbix_java/lib/*.xml && \
|
rm -rf /tmp/zabbix-${ZBX_VERSION}/src/zabbix_java/lib/*.xml && \
|
||||||
cd frontends/php/ && \
|
cd frontends/php/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /tmp/zabbix-${ZBX_VERSION}/frontends/php/fonts/DejaVuSans.ttf && \
|
|
||||||
./locale/make_mo.sh
|
./locale/make_mo.sh
|
||||||
|
|
||||||
FROM alpine:3.4
|
FROM alpine:3.4
|
||||||
@ -140,7 +136,6 @@ RUN addgroup zabbix && \
|
|||||||
mkdir -p /var/lib/zabbix/ssl/ssl_ca && \
|
mkdir -p /var/lib/zabbix/ssl/ssl_ca && \
|
||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/ && \
|
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/ && \
|
||||||
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
|
||||||
apk update && \
|
apk update && \
|
||||||
apk add ${APK_FLAGS_PERSISTENT} \
|
apk add ${APK_FLAGS_PERSISTENT} \
|
||||||
tini \
|
tini \
|
||||||
@ -171,7 +166,6 @@ RUN addgroup zabbix && \
|
|||||||
php5-sockets \
|
php5-sockets \
|
||||||
php5-xmlreader \
|
php5-xmlreader \
|
||||||
supervisor \
|
supervisor \
|
||||||
ttf-dejavu \
|
|
||||||
pcre \
|
pcre \
|
||||||
unixodbc && \
|
unixodbc && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
diff -Nru zabbix-2.5.0.orig/frontends/php/include/defines.inc.php zabbix-2.5.0/frontends/php/include/defines.inc.php
|
|
||||||
--- zabbix-2.5.0.orig/frontends/php/include/defines.inc.php 2015-08-19 17:27:39.000000000 +0900
|
|
||||||
+++ zabbix-2.5.0/frontends/php/include/defines.inc.php 2015-08-22 15:20:12.000000000 +0900
|
|
||||||
@@ -42,7 +42,7 @@
|
|
||||||
define('ZBX_WIDGET_ROWS', 20);
|
|
||||||
|
|
||||||
define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18)
|
|
||||||
-define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
|
|
||||||
+define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
|
|
||||||
define('ZBX_GRAPH_LEGEND_HEIGHT', 120); // when graph height is less then this value, some legend will not show up
|
|
||||||
|
|
||||||
define('ZBX_SCRIPT_TIMEOUT', 60); // in seconds
|
|
||||||
@@ -90,7 +90,7 @@
|
|
||||||
define('EVENTS_OPTION_ALL', 2);
|
|
||||||
define('EVENTS_OPTION_NOT_ACK', 3);
|
|
||||||
|
|
||||||
-define('ZBX_FONT_NAME', 'DejaVuSans');
|
|
||||||
+define('ZBX_FONT_NAME', 'graphfont');
|
|
||||||
|
|
||||||
define('ZBX_AUTH_INTERNAL', 0);
|
|
||||||
define('ZBX_AUTH_LDAP', 1);
|
|
@ -10,8 +10,6 @@ ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
|||||||
ZBX_TYPE=server ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx \
|
ZBX_TYPE=server ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx \
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD=true ZBX_ADD_SERVER=true ZBX_ADD_WEB=true DB_SERVER_HOST=localhost MYSQL_USER=zabbix ZBX_ADD_JAVA_GATEWAY=true ZBX_JAVAGATEWAY_ENABLE=true ZBX_JAVAGATEWAY=localhost
|
MYSQL_ALLOW_EMPTY_PASSWORD=true ZBX_ADD_SERVER=true ZBX_ADD_WEB=true DB_SERVER_HOST=localhost MYSQL_USER=zabbix ZBX_ADD_JAVA_GATEWAY=true ZBX_JAVAGATEWAY_ENABLE=true ZBX_JAVAGATEWAY=localhost
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
|
||||||
|
|
||||||
RUN yum ${YUM_FLAGS_DEV} install http://repo.zabbix.com/non-supported/rhel/7/x86_64/iksemel-devel-1.4-2.el7.centos.x86_64.rpm \
|
RUN yum ${YUM_FLAGS_DEV} install http://repo.zabbix.com/non-supported/rhel/7/x86_64/iksemel-devel-1.4-2.el7.centos.x86_64.rpm \
|
||||||
http://repo.zabbix.com/non-supported/rhel/7/x86_64/iksemel-1.4-2.el7.centos.x86_64.rpm && \
|
http://repo.zabbix.com/non-supported/rhel/7/x86_64/iksemel-1.4-2.el7.centos.x86_64.rpm && \
|
||||||
yum --quiet makecache && \
|
yum --quiet makecache && \
|
||||||
@ -30,7 +28,6 @@ RUN yum ${YUM_FLAGS_DEV} install http://repo.zabbix.com/non-supported/rhel/7/x86
|
|||||||
net-snmp-devel \
|
net-snmp-devel \
|
||||||
OpenIPMI-devel \
|
OpenIPMI-devel \
|
||||||
openldap-devel \
|
openldap-devel \
|
||||||
patch \
|
|
||||||
git \
|
git \
|
||||||
unixODBC-devel && \
|
unixODBC-devel && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
@ -70,10 +67,8 @@ RUN yum ${YUM_FLAGS_DEV} install http://repo.zabbix.com/non-supported/rhel/7/x86
|
|||||||
gzip database/${ZBX_DB_TYPE}/create.sql && \
|
gzip database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
rm -rf /tmp/zabbix-${ZBX_VERSION}/src/zabbix_java/lib/*.xml && \
|
rm -rf /tmp/zabbix-${ZBX_VERSION}/src/zabbix_java/lib/*.xml && \
|
||||||
cd frontends/php/ && \
|
cd frontends/php/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /tmp/zabbix-${ZBX_VERSION}/frontends/php/fonts/DejaVuSans.ttf && \
|
|
||||||
./locale/make_mo.sh
|
./locale/make_mo.sh
|
||||||
|
|
||||||
FROM centos:centos7
|
FROM centos:centos7
|
||||||
@ -150,7 +145,6 @@ RUN groupadd --system zabbix && \
|
|||||||
traceroute \
|
traceroute \
|
||||||
curl \
|
curl \
|
||||||
OpenIPMI-libs \
|
OpenIPMI-libs \
|
||||||
dejavu-sans-fonts \
|
|
||||||
java-1.8.0-openjdk-headless \
|
java-1.8.0-openjdk-headless \
|
||||||
libcurl \
|
libcurl \
|
||||||
libevent \
|
libevent \
|
||||||
@ -175,7 +169,6 @@ RUN groupadd --system zabbix && \
|
|||||||
mkdir -p /var/lib/php/ && \
|
mkdir -p /var/lib/php/ && \
|
||||||
chown --quiet -R nginx:nginx /var/lib/php/ && \
|
chown --quiet -R nginx:nginx /var/lib/php/ && \
|
||||||
ls -lah /usr/share/zabbix/ && \
|
ls -lah /usr/share/zabbix/ && \
|
||||||
ln -s /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
|
||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
cut -d"'" -f 2 | sort | \
|
cut -d"'" -f 2 | sort | \
|
||||||
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
diff -Nru zabbix-2.5.0.orig/frontends/php/include/defines.inc.php zabbix-2.5.0/frontends/php/include/defines.inc.php
|
|
||||||
--- zabbix-2.5.0.orig/frontends/php/include/defines.inc.php 2015-08-19 17:27:39.000000000 +0900
|
|
||||||
+++ zabbix-2.5.0/frontends/php/include/defines.inc.php 2015-08-22 15:20:12.000000000 +0900
|
|
||||||
@@ -42,7 +42,7 @@
|
|
||||||
define('ZBX_WIDGET_ROWS', 20);
|
|
||||||
|
|
||||||
define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18)
|
|
||||||
-define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
|
|
||||||
+define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
|
|
||||||
define('ZBX_GRAPH_LEGEND_HEIGHT', 120); // when graph height is less then this value, some legend will not show up
|
|
||||||
|
|
||||||
define('ZBX_SCRIPT_TIMEOUT', 60); // in seconds
|
|
||||||
@@ -90,7 +90,7 @@
|
|
||||||
define('EVENTS_OPTION_ALL', 2);
|
|
||||||
define('EVENTS_OPTION_NOT_ACK', 3);
|
|
||||||
|
|
||||||
-define('ZBX_FONT_NAME', 'DejaVuSans');
|
|
||||||
+define('ZBX_FONT_NAME', 'graphfont');
|
|
||||||
|
|
||||||
define('ZBX_AUTH_INTERNAL', 0);
|
|
||||||
define('ZBX_AUTH_LDAP', 1);
|
|
@ -54,7 +54,6 @@ COPY ["licenses", "/licenses"]
|
|||||||
### Add necessary Red Hat repos here
|
### Add necessary Red Hat repos here
|
||||||
RUN INSTALL_PKGS="OpenIPMI-libs \
|
RUN INSTALL_PKGS="OpenIPMI-libs \
|
||||||
curl \
|
curl \
|
||||||
dejavu-sans-fonts \
|
|
||||||
fping \
|
fping \
|
||||||
iksemel \
|
iksemel \
|
||||||
java-1.8.0-openjdk-headless \
|
java-1.8.0-openjdk-headless \
|
||||||
@ -113,8 +112,6 @@ RUN INSTALL_PKGS="OpenIPMI-libs \
|
|||||||
rm -rf /var/lib/yum/yumdb/* && \
|
rm -rf /var/lib/yum/yumdb/* && \
|
||||||
rm -rf /usr/lib/udev/hwdb.d/*
|
rm -rf /usr/lib/udev/hwdb.d/*
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
|
||||||
|
|
||||||
RUN REPOLIST="rhel-7-server-rpms,rhel-7-server-optional-rpms,zabbix-non-supported" && \
|
RUN REPOLIST="rhel-7-server-rpms,rhel-7-server-optional-rpms,zabbix-non-supported" && \
|
||||||
INSTALL_PKGS="autoconf \
|
INSTALL_PKGS="autoconf \
|
||||||
automake \
|
automake \
|
||||||
@ -131,7 +128,6 @@ RUN REPOLIST="rhel-7-server-rpms,rhel-7-server-optional-rpms,zabbix-non-supporte
|
|||||||
net-snmp-devel \
|
net-snmp-devel \
|
||||||
OpenIPMI-devel \
|
OpenIPMI-devel \
|
||||||
openldap-devel \
|
openldap-devel \
|
||||||
patch \
|
|
||||||
git \
|
git \
|
||||||
unixODBC-devel" && \
|
unixODBC-devel" && \
|
||||||
yum -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
yum -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
||||||
@ -188,13 +184,9 @@ RUN REPOLIST="rhel-7-server-rpms,rhel-7-server-optional-rpms,zabbix-non-supporte
|
|||||||
cp -R /usr/share/zabbix-${ZBX_VERSION}/frontends/php/* /usr/share/zabbix/ && \
|
cp -R /usr/share/zabbix-${ZBX_VERSION}/frontends/php/* /usr/share/zabbix/ && \
|
||||||
rm -rf /usr/share/zabbix-${ZBX_VERSION}/ && \
|
rm -rf /usr/share/zabbix-${ZBX_VERSION}/ && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
|
||||||
rm /tmp/font-config && \
|
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
|
||||||
./locale/make_mo.sh && \
|
./locale/make_mo.sh && \
|
||||||
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
|
||||||
yum ${YUM_FLAGS_COMMON} history undo `yum history | sed -n 4p |column -t | cut -d' ' -f1` && \
|
yum ${YUM_FLAGS_COMMON} history undo `yum history | sed -n 4p |column -t | cut -d' ' -f1` && \
|
||||||
yum ${YUM_FLAGS_COMMON} clean all && \
|
yum ${YUM_FLAGS_COMMON} clean all && \
|
||||||
rm -rf /var/cache/yum && \
|
rm -rf /var/cache/yum && \
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
diff -Nru zabbix-2.5.0.orig/frontends/php/include/defines.inc.php zabbix-2.5.0/frontends/php/include/defines.inc.php
|
|
||||||
--- zabbix-2.5.0.orig/frontends/php/include/defines.inc.php 2015-08-19 17:27:39.000000000 +0900
|
|
||||||
+++ zabbix-2.5.0/frontends/php/include/defines.inc.php 2015-08-22 15:20:12.000000000 +0900
|
|
||||||
@@ -42,7 +42,7 @@
|
|
||||||
define('ZBX_WIDGET_ROWS', 20);
|
|
||||||
|
|
||||||
define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18)
|
|
||||||
-define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
|
|
||||||
+define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
|
|
||||||
define('ZBX_GRAPH_LEGEND_HEIGHT', 120); // when graph height is less then this value, some legend will not show up
|
|
||||||
|
|
||||||
define('ZBX_SCRIPT_TIMEOUT', 60); // in seconds
|
|
||||||
@@ -90,7 +90,7 @@
|
|
||||||
define('EVENTS_OPTION_ALL', 2);
|
|
||||||
define('EVENTS_OPTION_NOT_ACK', 3);
|
|
||||||
|
|
||||||
-define('ZBX_FONT_NAME', 'DejaVuSans');
|
|
||||||
+define('ZBX_FONT_NAME', 'graphfont');
|
|
||||||
|
|
||||||
define('ZBX_AUTH_INTERNAL', 0);
|
|
||||||
define('ZBX_AUTH_LDAP', 1);
|
|
@ -12,8 +12,6 @@ ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
|||||||
ZBX_TYPE=server ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx \
|
ZBX_TYPE=server ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx \
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD=true ZBX_ADD_SERVER=true ZBX_ADD_WEB=true DB_SERVER_HOST=localhost MYSQL_USER=zabbix ZBX_ADD_JAVA_GATEWAY=true ZBX_JAVAGATEWAY_ENABLE=true ZBX_JAVAGATEWAY=localhost
|
MYSQL_ALLOW_EMPTY_PASSWORD=true ZBX_ADD_SERVER=true ZBX_ADD_WEB=true DB_SERVER_HOST=localhost MYSQL_USER=zabbix ZBX_ADD_JAVA_GATEWAY=true ZBX_JAVAGATEWAY_ENABLE=true ZBX_JAVAGATEWAY=localhost
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
|
||||||
|
|
||||||
RUN apt-get ${APT_FLAGS_COMMON} update && \
|
RUN apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_DEV} install locales && \
|
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_DEV} install locales && \
|
||||||
locale-gen $LC_ALL && \
|
locale-gen $LC_ALL && \
|
||||||
@ -36,7 +34,6 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
make \
|
make \
|
||||||
openjdk-8-jdk \
|
openjdk-8-jdk \
|
||||||
patch \
|
|
||||||
pkg-config \
|
pkg-config \
|
||||||
git \
|
git \
|
||||||
unixodbc-dev && \
|
unixodbc-dev && \
|
||||||
@ -77,10 +74,8 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
gzip database/${ZBX_DB_TYPE}/create.sql && \
|
gzip database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
rm -rf /tmp/zabbix-${ZBX_VERSION}/src/zabbix_java/lib/*.xml && \
|
rm -rf /tmp/zabbix-${ZBX_VERSION}/src/zabbix_java/lib/*.xml && \
|
||||||
cd frontends/php/ && \
|
cd frontends/php/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /tmp/zabbix-${ZBX_VERSION}/frontends/php/fonts/DejaVuSans.ttf && \
|
|
||||||
./locale/make_mo.sh
|
./locale/make_mo.sh
|
||||||
|
|
||||||
FROM ubuntu:bionic
|
FROM ubuntu:bionic
|
||||||
@ -199,11 +194,8 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
php7.2-xml \
|
php7.2-xml \
|
||||||
snmp-mibs-downloader \
|
snmp-mibs-downloader \
|
||||||
supervisor \
|
supervisor \
|
||||||
ttf-dejavu-core \
|
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
unixodbc && \
|
unixodbc && \
|
||||||
update-alternatives --install /usr/share/zabbix/fonts/graphfont.ttf \
|
|
||||||
zabbix-frontend-font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 10 && \
|
|
||||||
mkdir -p /var/lib/locales/supported.d/ && \
|
mkdir -p /var/lib/locales/supported.d/ && \
|
||||||
rm -f /var/lib/locales/supported.d/local && \
|
rm -f /var/lib/locales/supported.d/local && \
|
||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
diff -Nru zabbix-2.5.0.orig/frontends/php/include/defines.inc.php zabbix-2.5.0/frontends/php/include/defines.inc.php
|
|
||||||
--- zabbix-2.5.0.orig/frontends/php/include/defines.inc.php 2015-08-19 17:27:39.000000000 +0900
|
|
||||||
+++ zabbix-2.5.0/frontends/php/include/defines.inc.php 2015-08-22 15:20:12.000000000 +0900
|
|
||||||
@@ -42,7 +42,7 @@
|
|
||||||
define('ZBX_WIDGET_ROWS', 20);
|
|
||||||
|
|
||||||
define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18)
|
|
||||||
-define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
|
|
||||||
+define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
|
|
||||||
define('ZBX_GRAPH_LEGEND_HEIGHT', 120); // when graph height is less then this value, some legend will not show up
|
|
||||||
|
|
||||||
define('ZBX_SCRIPT_TIMEOUT', 60); // in seconds
|
|
||||||
@@ -90,7 +90,7 @@
|
|
||||||
define('EVENTS_OPTION_ALL', 2);
|
|
||||||
define('EVENTS_OPTION_NOT_ACK', 3);
|
|
||||||
|
|
||||||
-define('ZBX_FONT_NAME', 'DejaVuSans');
|
|
||||||
+define('ZBX_FONT_NAME', 'graphfont');
|
|
||||||
|
|
||||||
define('ZBX_AUTH_INTERNAL', 0);
|
|
||||||
define('ZBX_AUTH_LDAP', 1);
|
|
Loading…
Reference in New Issue
Block a user