quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.82k stars 2.69k forks source link

Kafka devservice - add host.docker.internal bootstrap server on a specific port too #43581

Open dcdh opened 1 month ago

dcdh commented 1 month ago

Description

Following this debezium feature Provide Quarkus outbox devservice

I need to add host.docker.internal to listen to a specific port and reuse it for advertised listener.

This is the only way I have to make the debezium connect container communicate with kafka and postgres. I cannot use a shared network. Too much complicated (postgres devservice will not work because the jdbc url will not be exposed using localhost and host mapped port and dev service keep up and a new one is created each time I run the test).

Implementation ideas

No response

dcdh commented 1 month ago

Linked with https://github.com/quarkusio/quarkus/issues/42465 which was created during my investigation and it was not accurate

dcdh commented 1 month ago

Jira on debezium side https://issues.redhat.com/browse/DBZ-8281

PR on debezium side here https://github.com/debezium/debezium/pull/5903