Hello! I was trying to use the new Services API that was released with the latest version of Dagger from the Golang SDK. My intent was to start Postgres and Redis services that are dependencies of one of our applications. However, I keep getting errors like:
input:1: container.from.withServiceBinding.withServiceBinding.withMountedDirectory.withWorkdir.withEnvVariable.withEnvVariable.withEnvVariable.withEnvVariable.withEnvVariable.withEnvVariable.withEnvVariable.withEnvVariable.withEnvVariable.withExec.withExec.directory start (aliased as postgres): service exited before healthcheck
I'm trying to use code like this:
postgres := client.Container().From("public.ecr.aws/docker/library/postgres:14.5").WithExposedPort(5432)
app = app.WithServiceBinding("postgres", postgres)
Do I have to specify the Postgres container in a special way? I'm just trying to use its default entrypoint. There are no debug logs I can get from as well, so I can't check why the container is exiting. The same issue is happening with the Redis, which is also exitting.