Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just updated to ActiveMQ Classic 6.0.0, tested the variables that are used in file entrypoint.sh and verify if they work. #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM bellsoft/liberica-openjdk-alpine:17

LABEL maintainer="Thomas Lutz <[email protected]>"

ENV ACTIVEMQ_VERSION 5.18.3
ENV ACTIVEMQ_VERSION 6.0.0
ENV ACTIVEMQ apache-activemq-$ACTIVEMQ_VERSION
ENV ACTIVEMQ_HOME /opt/activemq

Expand Down
13 changes: 12 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,18 @@ fi

if [ -n "$ACTIVEMQ_WEBADMIN_USERNAME" ] || [ -n "$ACTIVEMQ_WEBADMIN_PASSWORD" ]; then
echo "Setting activemq WebConsole $has_modified_webadmin_username $has_modified_webadmin_pw"
sed -i "s#admin: admin, admin#$activemq_webadmin_username: $activemq_webadmin_pw, admin#" conf/jetty-realm.properties

# If file conf/jetty-realm.properties exists
if [[ -e conf/jetty-realm.properties ]]; then
sed -i "s#admin: admin, admin#$activemq_webadmin_username: $activemq_webadmin_pw, admin#" conf/jetty-realm.properties
fi

# If file conf/jetty-realm.properties not exists
if [[ ! -e conf/jetty-realm.properties ]]; then
mkdir -p conf
touch conf/jetty-realm.properties
echo "$activemq_webadmin_username: $activemq_webadmin_pw, admin" >> conf/jetty-realm.properties
fi
fi

## Modify activemq.xml
Expand Down