mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-08-09 16:45:05 +02:00
Removed font processing. Using default font
This commit is contained in:
@ -50,8 +50,7 @@ RUN addgroup zabbix && \
|
||||
php7-xmlreader \
|
||||
php7-xmlwriter \
|
||||
postgresql-client \
|
||||
supervisor \
|
||||
ttf-dejavu && \
|
||||
supervisor && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
ARG MAJOR_VERSION=4.0
|
||||
@ -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.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 \
|
||||
coreutils \
|
||||
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/ && \
|
||||
rm -rf /usr/share/zabbix-${ZBX_VERSION}/ && \
|
||||
cd /usr/share/zabbix/ && \
|
||||
patch -p3 < /tmp/font-config && \
|
||||
rm /tmp/font-config && \
|
||||
rm -f conf/zabbix.conf.php && \
|
||||
rm -rf tests && \
|
||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
||||
./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 \
|
||||
build-dependencies && \
|
||||
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);
|
Reference in New Issue
Block a user