#Kafka service container with hardcoded hostname, is it possible ?

1 messages · Page 1 of 1 (latest)

sour gulch
#

Hello everyone,

I'm trying to run a pipeline (python sdk) that launches a Kafka service (https://registry.hub.docker.com/r/bitnami/kafka) to run some integration tests.

The thing is that the Kafka configuration needs to specify the KAFKA_CFG_ADVERTISED_LISTENERS variable. For those who don't know kafka, ADVERTISED_LISTENERS variable should be the IP or hostname that the server will listen to, so in most cases this is equal to the server public IP or DNS.

According to the documentation (https://docs.dagger.io/757394/use-service-containers/#bind-services), The services should listen on 0.0.0.0, but the listeners on Kafka can't be configured as 0.0.0.0.

I tried to set advertised listeners to kafka and then bind the service in my app container with kafka alias, but does not work (this is tipically the scenario in docker or docker compose containers)

Has anybody succesfully used Kafka as a container service within dagger ?

fresh nacelle