-
-
Notifications
You must be signed in to change notification settings - Fork 77
Bug: Container creation stuck when creating mongo with entrypoint #1088
Copy link
Copy link
Open
Description
Describe the bug
I am trying to create a gnomock container with mongo preset with replica set using WithEntrypoint() method. When I debug the code it creates container as expected however it gets stuck on code-side.
To Reproduce
c, err := gnomock.Start(mongoGnomock.Preset(
mongoGnomock.WithVersion("7"),
),
gnomock.WithUseLocalImagesFirst(),
gnomock.WithDebugMode(),
gnomock.WithContainerName("test-mongo"),
gnomock.WithEntrypoint("mongod", "--replSet", "myReplSet", "--bind_ip_all"),
)
Expected behavior
I expect it to create the container and continue.
System (please complete the following information):
- OS: Macos Sonoma 14.5
- Gnomock Version v0.31.0
- Docker version 27.2.0, build 3ab4256
Additional context
Is there a more effective method using Gnomock to make a replica set other then creating it like this and then running a replicaset init command? Please feel free to recommend one.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels