Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To debug catalog-ws-server you need to add specific lines to have  docker-compose.override.yaml in server sectionyaml file that looks like this (just copy and paste it in your empty file) 

Code Block
languagejava
version: "3.6"

services:
  server:
    volumes:
      - ./imasdb:/home/imas/public/imasdb
      - ./cert:/home/imas/cert
      - ./build/catalog_qt_2:/catalog_qt_2  #1
    ports:
      - 5005:5005  #2
    environment: 
      - DEBUG=1   #3

  updateprocess:
    volumes:
      - ./imasdb:/home/imas/public/imasdb

  inotify:
    volumes:
      - ./imasdb:/home/imas/public/imasdb
 
Info

#1  Maps your code on host machine to the code inside container, allowing you to use your favourite IDE debugger capabilities. Also, you can change your code and run docker-compose restart to rerun container. This allows container to integrate your newest code

...

#2  Exposes port for Java debugger, usually 5005.

#3  Enables debugging on catalog-ws-server.



You also need to run to clear patch file

Code Block
echotrue '' > build/files/server/application.properties.patch

...