This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch activemq-5.19.x
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/activemq-5.19.x by this push:
     new 0d0e7414f2 AMQ-9812: Allow user to set ACTIVEMQ_OPTS and 
ACTIVEMQ_OPTS_MEMORY env variables in Docker image (#1664)
0d0e7414f2 is described below

commit 0d0e7414f209fe8dbab77cacc0fdf505cef6d3ae
Author: JB Onofré <[email protected]>
AuthorDate: Wed Feb 11 15:01:12 2026 +0100

    AMQ-9812: Allow user to set ACTIVEMQ_OPTS and ACTIVEMQ_OPTS_MEMORY env 
variables in Docker image (#1664)
---
 assembly/src/docker/Dockerfile    |  3 +--
 assembly/src/docker/entrypoint.sh | 11 +++++++++++
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/assembly/src/docker/Dockerfile b/assembly/src/docker/Dockerfile
index e7f6dafc7f..38848f9cc2 100644
--- a/assembly/src/docker/Dockerfile
+++ b/assembly/src/docker/Dockerfile
@@ -21,10 +21,9 @@ FROM eclipse-temurin:11-jre
 # ActiveMQ environment variables
 ENV ACTIVEMQ_INSTALL_PATH /opt
 ENV ACTIVEMQ_HOME $ACTIVEMQ_INSTALL_PATH/apache-activemq
+ENV ACTIVEMQ_CONF $ACTIVEMQ_HOME/conf
 ENV ACTIVEMQ_EXEC exec
 ENV PATH $PATH:$ACTIVEMQ_HOME/bin
-# Make the Web console accessible from outside the container
-ENV ACTIVEMQ_OPTS $ACTIVEMQ_OPTS -Djetty.host=0.0.0.0
 #WORKDIR $ACTIVEMQ_HOME
 
 # activemq_dist can point to a directory or a tarball on the local system
diff --git a/assembly/src/docker/entrypoint.sh 
b/assembly/src/docker/entrypoint.sh
index ad6ce1cf71..27d60fd0ae 100755
--- a/assembly/src/docker/entrypoint.sh
+++ b/assembly/src/docker/entrypoint.sh
@@ -78,4 +78,15 @@ if [ -n "${ACTIVEMQ_WEB_USER}" ]; then
   fi
 fi
 
+if [ -z "${ACTIVEMQ_OPTS_MEMORY}" ]; then
+  ACTIVEMQ_OPTS_MEMORY="-Xms64M -Xmx1G"
+  export ACTIVEMQ_OPTS_MEMORY
+fi
+
+if [ -z "${ACTIVEMQ_OPTS}" ]; then
+  # Make the Web console accesible from outside the container if not already 
set
+  ACTIVEMQ_OPTS="${ACTIVEMQ_OPTS_MEMORY} 
-Djava.util.logging.config.file=logging.properties 
-Djava.security.auth.login.config=${ACTIVEMQ_CONF}/login.config 
-Djetty.host=0.0.0.0"
+  export ACTIVEMQ_OPTS
+fi
+
 exec "$@"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to