Skip to content

Commit

Permalink
NO-JIRA few small usability fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jbertram committed Sep 26, 2023
1 parent f565e13 commit cd1e982
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions artemis-docker/docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@
# specific language governing permissions and limitations
# under the License.



# This is the entry point for the docker images.
# This file is executed when docker run is called.

# This file is executed when "docker container create" or "docker run" is called.

set -e

Expand All @@ -34,19 +31,15 @@ else
LOGIN_OPTION="--require-login"
fi

CREATE_ARGUMENTS="--user ${ARTEMIS_USER} --password ${ARTEMIS_PASSWORD} --silent ${LOGIN_OPTION} ${EXTRA_ARGS}"

echo CREATE_ARGUMENTS=${CREATE_ARGUMENTS}

if ! [ -f ./etc/broker.xml ]; then
CREATE_ARGUMENTS="--user ${ARTEMIS_USER} --password ${ARTEMIS_PASSWORD} --silent ${LOGIN_OPTION} ${EXTRA_ARGS}"
echo CREATE_ARGUMENTS=${CREATE_ARGUMENTS}
/opt/activemq-artemis/bin/artemis create ${CREATE_ARGUMENTS} .
if [ -d ./etc-override ]; then
for file in `ls ./etc-override`; do echo copying file to etc folder: $file; cp ./etc-override/$file ./etc || :; done
fi
else
echo "broker already created, ignoring creation"
echo "skipping broker instance creation; instance already exists"
fi

exec ./bin/artemis "$@"


exec ./bin/artemis "$@"

0 comments on commit cd1e982

Please sign in to comment.