Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 2fd42c60 authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

Pull request #83: [EDELIVERY-11518] fix JDPA address for tomcat image

Merge in EDELIVERY/smp from bugfix/EDELIVERY-11518-fix-jdpa-address to development

* commit '7c4d956f':
  [EDELIVERY-11518] fix JDPA address for tomcat image
parents 1e25939f 7c4d956f
No related branches found
No related tags found
No related merge requests found
Pipeline #151658 failed
......@@ -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
......
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment