Skip to content

Commit

Permalink
chore: try with daemon host
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Feb 19, 2024
1 parent 033cf3c commit 67a5abf
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions modules/qdrant/qdrant.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ func (c *QdrantContainer) RESTEndpoint(ctx context.Context) (string, error) {
return "", fmt.Errorf("failed to get container port: %w", err)
}

host, err := c.Host(ctx)
provider, err := testcontainers.NewDockerProvider()
if err != nil {
return "", err
}
defer provider.Close()

host, err := provider.DaemonHost(ctx)
if err != nil {
return "", fmt.Errorf("failed to get container host")
}
Expand All @@ -58,7 +64,13 @@ func (c *QdrantContainer) GRPCEndpoint(ctx context.Context) (string, error) {
return "", fmt.Errorf("failed to get container port: %w", err)
}

host, err := c.Host(ctx)
provider, err := testcontainers.NewDockerProvider()
if err != nil {
return "", err
}
defer provider.Close()

host, err := provider.DaemonHost(ctx)
if err != nil {
return "", fmt.Errorf("failed to get container host")
}
Expand Down

0 comments on commit 67a5abf

Please sign in to comment.