Hey!
I have a situation where I'm attempting to use Dagger for some custom loadbalancer integration tests. Part of this requires that a set of targets must be specified on a resource using IP addresses.
My idea was to spin up several Nginx containers, get their IP addresses, use them as the targets for the resource and then happily test that everything is working.
Unfortunately, I can't seem to find a nice and reliable way get the IP address of a Service container. I have searched Discord for similar questions and found one who's answer seems to suggest using another container to ping or dig the servicebind alias to get the IP address.
This seems overkill for something that with testcontainers is as simple as calling ContainerIP() on a Container instance.
Am I missing something?
Thanks all in advance!