Added possibility to include additional JAR files for Zabbix Java Gateway

This commit is contained in:
root 2019-01-13 03:11:11 +02:00
parent 6465a70acc
commit da784b5db4
9 changed files with 27 additions and 3 deletions

View File

@ -82,6 +82,8 @@ EXPOSE 10052/TCP
WORKDIR /var/lib/zabbix
VOLUME ["/usr/sbin/zabbix_java/ext_lib"]
COPY ["conf/etc/zabbix/zabbix_java_gateway_logback.xml", "/etc/zabbix/"]
COPY ["conf/usr/sbin/zabbix_java_gateway", "/usr/sbin/"]
COPY ["docker-entrypoint.sh", "/usr/bin/"]

View File

@ -72,6 +72,12 @@ This variable is used to specify timeout for outgoing connections. By default, v
This variable is used to specify log level. By default, value is `info`. The variable allows next values: ``trace``, ``debug``, ``info``, ``want``, ``error``, ``all``, ``off``
## Allowed volumes for the Zabbix Java Gateway container
### ``/usr/sbin/zabbix_java/ext_lib``
The volume allows include additional JAR files to extend allowed protocols for Zabbix Java Gateway.
# The image variants
The `zabbix-java-gateway` images come in many flavors, each designed for a specific use case.

View File

@ -7,7 +7,7 @@ JAVA_OPTIONS="$JAVA_OPTIONS -Dlogback.configurationFile=/etc/zabbix/zabbix_java_
cd $DAEMON
CLASSPATH="$DAEMON/lib"
for jar in `find lib bin -name "*.jar"`; do
for jar in `find lib bin ext_lib -name "*.jar"`; do
if [ $jar != *junit* ]; then
CLASSPATH="$CLASSPATH:$DAEMON/$jar"
fi

View File

@ -85,6 +85,8 @@ EXPOSE 10052/TCP
WORKDIR /var/lib/zabbix
VOLUME ["/usr/sbin/zabbix_java/ext_lib"]
COPY ["conf/etc/zabbix/zabbix_java_gateway_logback.xml", "/etc/zabbix/"]
COPY ["conf/usr/sbin/zabbix_java_gateway", "/usr/sbin/"]
COPY ["docker-entrypoint.sh", "/usr/bin/"]

View File

@ -72,6 +72,12 @@ This variable is used to specify timeout for outgoing connections. By default, v
This variable is used to specify log level. By default, value is `info`. The variable allows next values: ``trace``, ``debug``, ``info``, ``want``, ``error``, ``all``, ``off``
## Allowed volumes for the Zabbix Java Gateway container
### ``/usr/sbin/zabbix_java/ext_lib``
The volume allows include additional JAR files to extend allowed protocols for Zabbix Java Gateway.
# The image variants
The `zabbix-java-gateway` images come in many flavors, each designed for a specific use case.

View File

@ -7,7 +7,7 @@ JAVA_OPTIONS="$JAVA_OPTIONS -Dlogback.configurationFile=/etc/zabbix/zabbix_java_
cd $DAEMON
CLASSPATH="$DAEMON/lib"
for jar in `find lib bin -name "*.jar"`; do
for jar in `find lib bin ext_lib -name "*.jar"`; do
if [ $jar != *junit* ]; then
CLASSPATH="$CLASSPATH:$DAEMON/$jar"
fi

View File

@ -100,6 +100,8 @@ EXPOSE 10052/TCP
WORKDIR /var/lib/zabbix
VOLUME ["/usr/sbin/zabbix_java/ext_lib"]
COPY ["conf/etc/zabbix/zabbix_java_gateway_logback.xml", "/etc/zabbix/"]
COPY ["conf/usr/sbin/zabbix_java_gateway", "/usr/sbin/"]
COPY ["docker-entrypoint.sh", "/usr/bin/"]

View File

@ -72,6 +72,12 @@ This variable is used to specify timeout for outgoing connections. By default, v
This variable is used to specify log level. By default, value is `info`. The variable allows next values: ``trace``, ``debug``, ``info``, ``want``, ``error``, ``all``, ``off``
## Allowed volumes for the Zabbix Java Gateway container
### ``/usr/sbin/zabbix_java/ext_lib``
The volume allows include additional JAR files to extend allowed protocols for Zabbix Java Gateway.
# The image variants
The `zabbix-java-gateway` images come in many flavors, each designed for a specific use case.

View File

@ -7,7 +7,7 @@ JAVA_OPTIONS="$JAVA_OPTIONS -Dlogback.configurationFile=/etc/zabbix/zabbix_java_
cd $DAEMON
CLASSPATH="$DAEMON/lib"
for jar in `find lib bin -name "*.jar"`; do
for jar in `find lib bin ext_lib -name "*.jar"`; do
if [ $jar != *junit* ]; then
CLASSPATH="$CLASSPATH:$DAEMON/$jar"
fi