Hello Dan,

Sorry for returning to this after long time. I think 'ofbizDebug' is not
available in the code base used to build the Docker image.

Regards,
Emad

On Fri, May 20, 2022 at 2:42 PM Daniel Watford <d...@foomoo.co.uk> wrote:

> Hi Emad,
>
> I've not tested this today, but try replacing the docker-compose.yml file
> with something similar to :
>
>
> version: '3.2'
> services:
> activate:
> image: ofbiz:latest
> command: ./gradlew "ofbizDebug --load-data dir=local-config" ofbiz
> volumes:
> - type: bind
> source: ./local-config
> target: /ofbiz/local-config
> ports:
> - 8443:8443 - 5005:5005
>
> In the above docker-compose.yml file, the command now runs the ofbizDebug
> gradle task rather than ofbiz.
>
> Running the ofbizDebug task sets debug=true on the underlying gradle
> JavaExec task used to run ofbiz. When debug=true the JVM is launched in the
> suspended debug state, listening on port 5005 for a debugger to connect..
>
> In the above docker-compose.yml file, port 5005 has been exposed meaning
> your debugger should be able to connect to the ofbiz JVM.
>
> Please let us know if the above works for you.
>
> Thanks,
>
> Dan.
>
>
> On Fri, 20 May 2022 at 13:10, Emad Radwan <eradwan1...@gmail.com> wrote:
>
> > Hello Community,
> >
> > I’m running the following configuration using Docker, does anyone know
> how
> > to modify it to allow for remote debugging?
> >
> > Regards,
> > Emad
> >
> > https://github.com/danwatford/ofbiz-docker
>
>
>
> --
> Daniel Watford
>

Reply via email to