File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,11 +22,8 @@ FROM eclipse-temurin:17-jre
2222ENV ACTIVEMQ_INSTALL_PATH /opt
2323ENV ACTIVEMQ_HOME $ACTIVEMQ_INSTALL_PATH/apache-activemq
2424ENV ACTIVEMQ_CONF $ACTIVEMQ_HOME/conf
25- ENV ACTIVEMQ_OPTS_MEMORY -Xms64M -Xmx1G
2625ENV ACTIVEMQ_EXEC exec
2726ENV PATH $PATH:$ACTIVEMQ_HOME/bin
28- # Make the Web console accesible from outside the container
29- 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
3027# WORKDIR $ACTIVEMQ_HOME
3128
3229# activemq_dist can point to a directory or a tarball on the local system
Original file line number Diff line number Diff line change @@ -78,4 +78,15 @@ if [ -n "${ACTIVEMQ_WEB_USER}" ]; then
7878 fi
7979fi
8080
81+ if [ -z " ${ACTIVEMQ_OPTS_MEMORY} " ]; then
82+ ACTIVEMQ_OPTS_MEMORY=" -Xms64M -Xmx1G"
83+ export ACTIVEMQ_OPTS_MEMORY
84+ fi
85+
86+ if [ -z " ${ACTIVEMQ_OPTS} " ]; then
87+ # Make the Web console accesible from outside the container if not already set
88+ 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"
89+ export ACTIVEMQ_OPTS
90+ fi
91+
8192exec " $@ "
You can’t perform that action at this time.
0 commit comments