diff --git a/java-gateway/alpine/Dockerfile b/java-gateway/alpine/Dockerfile index 2e918e422..efb05ab9a 100644 --- a/java-gateway/alpine/Dockerfile +++ b/java-gateway/alpine/Dockerfile @@ -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/"] diff --git a/java-gateway/alpine/README.md b/java-gateway/alpine/README.md index 48f60c65f..975670648 100644 --- a/java-gateway/alpine/README.md +++ b/java-gateway/alpine/README.md @@ -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. diff --git a/java-gateway/alpine/conf/usr/sbin/zabbix_java_gateway b/java-gateway/alpine/conf/usr/sbin/zabbix_java_gateway index 2da696885..e77d407f6 100755 --- a/java-gateway/alpine/conf/usr/sbin/zabbix_java_gateway +++ b/java-gateway/alpine/conf/usr/sbin/zabbix_java_gateway @@ -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 diff --git a/java-gateway/centos/Dockerfile b/java-gateway/centos/Dockerfile index 9aae2cac9..2c09e71ce 100644 --- a/java-gateway/centos/Dockerfile +++ b/java-gateway/centos/Dockerfile @@ -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/"] diff --git a/java-gateway/centos/README.md b/java-gateway/centos/README.md index 48f60c65f..975670648 100644 --- a/java-gateway/centos/README.md +++ b/java-gateway/centos/README.md @@ -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. diff --git a/java-gateway/centos/conf/usr/sbin/zabbix_java_gateway b/java-gateway/centos/conf/usr/sbin/zabbix_java_gateway index 2da696885..e77d407f6 100755 --- a/java-gateway/centos/conf/usr/sbin/zabbix_java_gateway +++ b/java-gateway/centos/conf/usr/sbin/zabbix_java_gateway @@ -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 diff --git a/java-gateway/ubuntu/Dockerfile b/java-gateway/ubuntu/Dockerfile index 6419e8a51..cfaa912df 100644 --- a/java-gateway/ubuntu/Dockerfile +++ b/java-gateway/ubuntu/Dockerfile @@ -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/"] diff --git a/java-gateway/ubuntu/README.md b/java-gateway/ubuntu/README.md index 48f60c65f..975670648 100644 --- a/java-gateway/ubuntu/README.md +++ b/java-gateway/ubuntu/README.md @@ -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. diff --git a/java-gateway/ubuntu/conf/usr/sbin/zabbix_java_gateway b/java-gateway/ubuntu/conf/usr/sbin/zabbix_java_gateway index 2da696885..e77d407f6 100755 --- a/java-gateway/ubuntu/conf/usr/sbin/zabbix_java_gateway +++ b/java-gateway/ubuntu/conf/usr/sbin/zabbix_java_gateway @@ -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