diff --git a/domismp-tests/domismp-docker/compose/domismp-tomcat-mysql/docker-compose.yml b/domismp-tests/domismp-docker/compose/domismp-tomcat-mysql/docker-compose.yml index d3f2da2ced53838a32ec3a419794cf35376920d4..cdeebb0810e65861eb0acd8faa55b6eff74ab029 100644 --- a/domismp-tests/domismp-docker/compose/domismp-tomcat-mysql/docker-compose.yml +++ b/domismp-tests/domismp-docker/compose/domismp-tomcat-mysql/docker-compose.yml @@ -4,8 +4,9 @@ services: image: ${IMAGE_TAG:-edeliverytest}/${IMAGE_SMP_TOMCAT_MYSQL}:${SMP_VERSION} hostname: eulogin.protected.smp.local environment: -# example to start it with JDK 8 +# example to start it with JDK 8 and JPDA enabled for debugging! # - JDK_VERSION=8 +# - JPDA_ADDRESS=5005 - SMP_INIT_PROPERTIES=smp.passwordPolicy.expired.forceChange=false ||smp.automation.authentication.external.tls.SSLClientCert.enabled=true ||smp.cluster.enabled=false diff --git a/domismp-tests/domismp-docker/images/domismp-tomcat-mysql/Dockerfile b/domismp-tests/domismp-docker/images/domismp-tomcat-mysql/Dockerfile index 198fa0b95f8bbf1073696d5f22a3492bc83550b1..1e73cf94ee9fd848420616ee45f07644d036464d 100755 --- a/domismp-tests/domismp-docker/images/domismp-tomcat-mysql/Dockerfile +++ b/domismp-tests/domismp-docker/images/domismp-tomcat-mysql/Dockerfile @@ -39,7 +39,7 @@ ENV SMP_HOME=/opt/smp \ LANG=en_US.utf8 \ LD_LIBRARY_PATH=/usr/local/apr/lib \ # set debug - JPDA_ADDRESS="5005" \ + JPDA_ADDRESS="*:5005" \ JPDA_TRANSPORT="dt_socket" # set tomcat and java home environment variables diff --git a/domismp-tests/domismp-docker/images/domismp-tomcat-mysql/README.md b/domismp-tests/domismp-docker/images/domismp-tomcat-mysql/README.md index 03641f192377abe221cd412f7987d45e74890a25..1ebdff087cbe090bf0e7dc1d803c78c304dfad77 100755 --- a/domismp-tests/domismp-docker/images/domismp-tomcat-mysql/README.md +++ b/domismp-tests/domismp-docker/images/domismp-tomcat-mysql/README.md @@ -5,6 +5,8 @@ be used in production environment. The image is shipped with jdk 8 and 11. By default the jdk 11 is used, but it can be changed by setting the environment variable JDK_VERSION=8 to start the container with JAVA_HOME pointing to jdk 8. +NOTE : that the jdk 11 JDPA_ADDRESS is by default "*:5005". To make it work with jdk 8, the JDPA_ADDRESS should be changed to "5005". + # Image build docker build -t smp . @@ -17,7 +19,7 @@ variable JDK_VERSION=8 to start the container with JAVA_HOME pointing to jdk 8. example: - docker run --name smp --rm -it -p 8180:8080 -p 3316:3306 -e JDK_VERSION=8 edelivery-docker.devops.tech.ec.europa.eu/edeliverytest/smp-sml-tomcat-mysql:5.0-SNAPSHOT + docker run --name smp --rm -it -p 8180:8080 -p 3316:3306 -e JDK_VERSION=8 -e JDPA_ADDRESS=5005 edelivery-docker.devops.tech.ec.europa.eu/edeliverytest/smp-sml-tomcat-mysql:5.0-SNAPSHOT ## SMP (param: -p 8180:8080 ) url: http://localhost:8180/smp