mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 23:13:10 +00:00
Merge pull request #10488 from DSpace/backport-10487-to-dspace-8_x
[Port dspace-8_x] #10476: Fix debug port conflicts in Dockerfile test env
This commit is contained in:
@@ -33,7 +33,14 @@ if [ "$1" = "classpath" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Allow user to specify java options through JAVA_OPTS variable
|
# Unset JAVA_TOOL_OPTIONS (exported by Dockerfile) so that any debug ports don't conflict
|
||||||
|
unset JAVA_TOOL_OPTIONS
|
||||||
|
# Note, if you wish to also debug the CLI launcher, the following line is an
|
||||||
|
# example of how to do so - note the different port number and 'suspend=y' which
|
||||||
|
# means the JVM will not begin execution until a debugger is attached.
|
||||||
|
#JAVA_TOOL_OPTIONS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:1043"
|
||||||
|
|
||||||
|
# Allow user to specify java options through JAVA_OPTS variable
|
||||||
if [ "$JAVA_OPTS" = "" ]; then
|
if [ "$JAVA_OPTS" = "" ]; then
|
||||||
#Default Java to use 256MB of memory
|
#Default Java to use 256MB of memory
|
||||||
JAVA_OPTS="-Xmx256m -Dfile.encoding=UTF-8"
|
JAVA_OPTS="-Xmx256m -Dfile.encoding=UTF-8"
|
||||||
|
Reference in New Issue
Block a user