Skip to content

Bug: Container creation stuck when creating mongo with entrypoint #1088

@zahidcakici

Description

@zahidcakici

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions