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

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

[EDELIVERY-11518] fix JDPA address for tomcat image

parent 1e25939f
No related branches found
No related tags found
No related merge requests found
Pipeline #151640 failed
...@@ -4,8 +4,9 @@ services: ...@@ -4,8 +4,9 @@ services:
image: ${IMAGE_TAG:-edeliverytest}/${IMAGE_SMP_TOMCAT_MYSQL}:${SMP_VERSION} image: ${IMAGE_TAG:-edeliverytest}/${IMAGE_SMP_TOMCAT_MYSQL}:${SMP_VERSION}
hostname: eulogin.protected.smp.local hostname: eulogin.protected.smp.local
environment: environment:
# example to start it with JDK 8 # example to start it with JDK 8 and JPDA enabled for debugging!
# - JDK_VERSION=8 # - JDK_VERSION=8
# - JPDA_ADDRESS=5005
- SMP_INIT_PROPERTIES=smp.passwordPolicy.expired.forceChange=false - SMP_INIT_PROPERTIES=smp.passwordPolicy.expired.forceChange=false
||smp.automation.authentication.external.tls.SSLClientCert.enabled=true ||smp.automation.authentication.external.tls.SSLClientCert.enabled=true
||smp.cluster.enabled=false ||smp.cluster.enabled=false
......
...@@ -39,7 +39,7 @@ ENV SMP_HOME=/opt/smp \ ...@@ -39,7 +39,7 @@ ENV SMP_HOME=/opt/smp \
LANG=en_US.utf8 \ LANG=en_US.utf8 \
LD_LIBRARY_PATH=/usr/local/apr/lib \ LD_LIBRARY_PATH=/usr/local/apr/lib \
# set debug # set debug
JPDA_ADDRESS="5005" \ JPDA_ADDRESS="*:5005" \
JPDA_TRANSPORT="dt_socket" JPDA_TRANSPORT="dt_socket"
# set tomcat and java home environment variables # set tomcat and java home environment variables
......
...@@ -5,6 +5,8 @@ be used in production environment. ...@@ -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 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. 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 # Image build
docker build -t smp . docker build -t smp .
...@@ -17,7 +19,7 @@ variable JDK_VERSION=8 to start the container with JAVA_HOME pointing to jdk 8. ...@@ -17,7 +19,7 @@ variable JDK_VERSION=8 to start the container with JAVA_HOME pointing to jdk 8.
example: 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 ) ## SMP (param: -p 8180:8080 )
url: http://localhost:8180/smp 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