Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

localstack testcontainer is failing in darwin: rootless Docker not found #71

Open
pablochacin opened this issue Dec 12, 2024 · 0 comments

Comments

@pablochacin
Copy link
Collaborator

Looking at the stack trace, the problem seems to be at the localstack module's Run method calling] the MustExtractDockerSocket to obtain the socket to Docker.

Investigate how to setup the github job to run properly in Darwin.

testing.tRunner.func1.2({0x104cecb40, 0xc00018a018})
	/Users/runner/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1631 +0x2c8
testing.tRunner.func1()
	/Users/runner/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1634 +0x47c
panic({0x104cecb40?, 0xc00018a018?})
	/Users/runner/go/pkg/mod/golang.org/[email protected]/src/runtime/panic.go:770 +0x124
github.com/testcontainers/testcontainers-go/internal/core.NewClient.MustExtractDockerHost.func2()
	/Users/runner/go/pkg/mod/github.com/testcontainers/[email protected]/internal/core/docker_host.go:91 +0xb4
sync.(*Once).doSlow(0x10611cce8, 0xc00019e488)
	/Users/runner/go/pkg/mod/golang.org/[email protected]/src/sync/once.go:74 +0xb8
sync.(*Once).Do(0x10611cce8, 0xc00019e488)
	/Users/runner/go/pkg/mod/golang.org/[email protected]/src/sync/once.go:65 +0x44
github.com/testcontainers/testcontainers-go/internal/core.MustExtractDockerHost(...)
	/Users/runner/go/pkg/mod/github.com/testcontainers/[email protected]/internal/core/docker_host.go:88
github.com/testcontainers/testcontainers-go/internal/core.NewClient({0x104db6658, 0x10611c780}, {0x0, 0x0, 0x0?})
	/Users/runner/go/pkg/mod/github.com/testcontainers/[email protected]/internal/core/client.go:17 +0x[100](https://github.com/grafana/k6build/actions/runs/12293233449/job/34315653680?pr=68#step:4:101)
github.com/testcontainers/testcontainers-go/internal/core.extractDockerSocket({0x104db6658, 0x10611c780})
	/Users/runner/go/pkg/mod/github.com/testcontainers/[email protected]/internal/core/docker_host.go:163 +0x48
github.com/testcontainers/testcontainers-go.MustExtractDockerSocket.MustExtractDockerSocket.func1()
	/Users/runner/go/pkg/mod/github.com/testcontainers/[email protected]/internal/core/docker_host.go:115 +0x3c
sync.(*Once).doSlow(0x10611ccf8, 0xc00019e6d0)
	/Users/runner/go/pkg/mod/golang.org/[email protected]/src/sync/once.go:74 +0xb8
sync.(*Once).Do(0x10611ccf8, 0xc00019e6d0)
	/Users/runner/go/pkg/mod/golang.org/[email protected]/src/sync/once.go:65 +0x44
github.com/testcontainers/testcontainers-go/internal/core.MustExtractDockerSocket(...)
	/Users/runner/go/pkg/mod/github.com/testcontainers/[email protected]/internal/core/docker_host.go:114
github.com/testcontainers/testcontainers-go.MustExtractDockerSocket({0x[104](https://github.com/grafana/k6build/actions/runs/12293233449/job/34315653680?pr=68#step:4:105)db6658, 0x10611c780})
	/Users/runner/go/pkg/mod/github.com/testcontainers/[email protected]/testcontainers.go:28 +0x6c
github.com/testcontainers/testcontainers-go/modules/localstack.Run({0x104db6658, 0x[106](https://github.com/grafana/k6build/actions/runs/12293233449/job/34315653680?pr=68#step:4:107)11c780}, {0x104b0ccd3, 0x1c}, {0x0, 0x0, 0x0?})
	/Users/runner/go/pkg/mod/github.com/testcontainers/testcontainers-go/modules/[email protected]/localstack.go:77 +0x58
github.com/grafana/k6build/pkg/store/s3.setupStore({0xc00019fe90, 0x1, 0x5afaf?})
	/Users/runner/work/k6build/k6build/pkg/store/s3/s3_test.go:63 +0x5c
github.com/grafana/k6build/pkg/store/s3.TestPutObject(0xc00044f6c0)
	/Users/runner/work/k6build/k6build/pkg/store/s3/s3_test.go:115 +0xd8
testing.tRunner(0xc00044f6c0, 0x104dab0d8)
	/Users/runner/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1689 +0x184
created by testing.(*T).Run in goroutine 1
	/Users/runner/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1742 +0x5e8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant