Dear,
I'm trying to change an existing unit test from within in our company to use dagger. But i'm not sure how i can debug the services used in the container.
_, err = client.Container().
From(fmt.Sprintf("gradle:%s-jdk%s-alpine", t.BuildToolVersion, t.JavaVersion)).
WithServiceBinding("redis", self.redis.AsService()).
WithServiceBinding("toxiproxy", self.redisToxiProxy.AsService()).
//WithMountedCache("/home/gradle/.gradle", client.CacheVolume("measurements"), dagger.ContainerWithMountedCacheOpts{Sharing: dagger.Shared}).
WithExec(strings.Fields("gradle --build-cache test --no-daemon")).
Directory("build/test-reports/").
Export(ctx, "test-results")
It isn't clear out of the documentation that services can contact eachoter so I'm not sure the toxiproxy can be setup to reach redis.
Why trying to setup the tests i seem to miss some basic tooling to check which dockers are running in the dagger engine and to log into the services to verify them.
I.e. is there an equivalent to docker exec -ti container /bin/bash and docker ps or do i need to setup my dagger engine differently so it uses my docker deamon?
Another question: would there be an easy way to setup the same services on the localhost of the machine so developers can run the tests directly to make it easier to debug and develop the application.
