This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch activemq-6.2.x
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/activemq-6.2.x by this push:
new 48ddded16d AMQ-9812: Allow user to set ACTIVEMQ_OPTS and
ACTIVEMQ_OPTS_MEMORY env variables in Docker image (#1664)
48ddded16d is described below
commit 48ddded16d38b9b99e4c919b338fc0c99dc0c7f0
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, 11 insertions(+), 3 deletions(-)
diff --git a/assembly/src/docker/Dockerfile b/assembly/src/docker/Dockerfile
index e5092d1a9a..d12e372d3d 100644
--- a/assembly/src/docker/Dockerfile
+++ b/assembly/src/docker/Dockerfile
@@ -22,11 +22,8 @@ FROM eclipse-temurin:17-jre
ENV ACTIVEMQ_INSTALL_PATH /opt
ENV ACTIVEMQ_HOME $ACTIVEMQ_INSTALL_PATH/apache-activemq
ENV ACTIVEMQ_CONF $ACTIVEMQ_HOME/conf
-ENV ACTIVEMQ_OPTS_MEMORY -Xms64M -Xmx1G
ENV ACTIVEMQ_EXEC exec
ENV PATH $PATH:$ACTIVEMQ_HOME/bin
-# Make the Web console accesible from outside the container
-ENV 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
#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