Combining Modules and ParallelContainers #2274
Unanswered
gheorghestrimtu
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I really like the Modules pattern you guys have introduced for encapsulating one Container in a reusable manner. But looking at the examples in the repo I see that all modules use only
testcontainers.GenericContainer
to deploy one container at a time. I would be interested to use Modules and ParallelContainers together. So how would you approach this task?I see two ways:
ParallelContainers
inside the module. But this would break thefunc RunContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer)
template, because now I have to pass opts for more than one container.GenericContainerRequest
and useParallelContainers
outside the module, but again we would not usefunc RunContainer
but another pattern.WDYT ?
Beta Was this translation helpful? Give feedback.
All reactions