Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Commit

Permalink
Adding debug support
Browse files Browse the repository at this point in the history
  • Loading branch information
dotcmsbuild committed Feb 23, 2021
1 parent cc440f6 commit 60bbfb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions images/dotcms/ROOT/srv/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ if [[ "${1}" == "dotcms" || -z "${1}" ]]; then
DB_CONNECT_TEST="$(cat /tmp/DB_CONNECT_TEST | tr -d [:space:])"
echo "DB Connect Test: ${DB_CONNECT_TEST}"

if [[ ${DEBUG} == true ]]; then
export CATALINA_OPTS='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000'
fi

if [[ -n "$DB_CONNECT_TEST" ]]; then
exec -- \
/usr/local/bin/dockerize -wait tcp://${DB_CONNECT_TEST} -timeout 60s \
Expand Down

0 comments on commit 60bbfb6

Please sign in to comment.