mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-28 18:53:10 +01:00
Optimized Java Gateway build process
This commit is contained in:
parent
adcdc6eb29
commit
937416801d
@ -71,7 +71,8 @@ RUN set -eux && REPOLIST="ol8_baseos_latest,ol8_appstream" && \
|
||||
mkdir -p /usr/sbin/zabbix_java/ && \
|
||||
cp -r src/zabbix_java/bin /usr/sbin/zabbix_java/ && \
|
||||
cp -r src/zabbix_java/lib /usr/sbin/zabbix_java/ && \
|
||||
rm -rf /usr/sbin/zabbix_java/lib/*.xml && \
|
||||
rm -rf /usr/sbin/zabbix_java/lib/logback.xml && \
|
||||
mv /usr/sbin/zabbix_java/lib/logback-console.xml /etc/zabbix/zabbix_java_gateway_logback.xml && \
|
||||
cd /tmp/ && \
|
||||
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
|
||||
dnf -y history undo last && \
|
||||
|
@ -1,15 +0,0 @@
|
||||
<configuration scan="true" scanPeriod="15 seconds">
|
||||
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
|
||||
<encoder>
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||
</encoder>
|
||||
|
||||
</appender>
|
||||
|
||||
<root level="info">
|
||||
<appender-ref ref="STDOUT" />
|
||||
</root>
|
||||
|
||||
</configuration>
|
@ -90,7 +90,8 @@ RUN set -eux && INSTALL_PKGS="autoconf \
|
||||
mkdir -p /usr/sbin/zabbix_java/ && \
|
||||
cp -r src/zabbix_java/bin /usr/sbin/zabbix_java/ && \
|
||||
cp -r src/zabbix_java/lib /usr/sbin/zabbix_java/ && \
|
||||
rm -rf /usr/sbin/zabbix_java/lib/*.xml && \
|
||||
rm -rf /usr/sbin/zabbix_java/lib/logback.xml && \
|
||||
mv /usr/sbin/zabbix_java/lib/logback-console.xml /etc/zabbix/zabbix_java_gateway_logback.xml && \
|
||||
cd /tmp/ && \
|
||||
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
|
||||
dnf -y history undo last && \
|
||||
|
@ -1,15 +0,0 @@
|
||||
<configuration scan="true" scanPeriod="15 seconds">
|
||||
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
|
||||
<encoder>
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||
</encoder>
|
||||
|
||||
</appender>
|
||||
|
||||
<root level="info">
|
||||
<appender-ref ref="STDOUT" />
|
||||
</root>
|
||||
|
||||
</configuration>
|
@ -169,7 +169,8 @@ RUN set -eux && REPOLIST="rhel-8-for-x86_64-baseos-rpms,rhel-8-for-x86_64-appstr
|
||||
cp database/mysql/create.sql.gz /usr/share/doc/zabbix-server-mysql/ && \
|
||||
cp -r src/zabbix_java/bin /usr/sbin/zabbix_java/ && \
|
||||
cp -r src/zabbix_java/lib /usr/sbin/zabbix_java/ && \
|
||||
rm -rf /usr/sbin/zabbix_java/lib/*.xml && \
|
||||
rm -rf /usr/sbin/zabbix_java/lib/logback.xml && \
|
||||
mv /usr/sbin/zabbix_java/lib/logback-console.xml /etc/zabbix/zabbix_java_gateway_logback.xml && \
|
||||
cp -R /tmp/zabbix-${ZBX_VERSION}/ui/* /usr/share/zabbix/ && \
|
||||
cd /tmp/ && \
|
||||
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
|
||||
|
@ -1,15 +0,0 @@
|
||||
<configuration scan="true" scanPeriod="15 seconds">
|
||||
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
|
||||
<encoder>
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||
</encoder>
|
||||
|
||||
</appender>
|
||||
|
||||
<root level="info">
|
||||
<appender-ref ref="STDOUT" />
|
||||
</root>
|
||||
|
||||
</configuration>
|
Loading…
Reference in New Issue
Block a user