Combining Modules and ParallelContainers #2274
Unanswered
gheorghestrimtu
asked this question in
Q&A
Replies: 1 comment
-
Hi @gheorghestrimtu thanks for raising this concern. How would it be your desired way of using this feature of parallel containers plus modules? Parallel containers came before the modules approach, and they are actually not connected, so we are in a good position to design how we want to work with both. |
Beta Was this translation helpful? Give feedback.
0 replies
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