-
-
Notifications
You must be signed in to change notification settings - Fork 492
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
Reusable containers #169
Comments
Hello! Thank you for opening this issue. We do not have a feature like that. But it is for sure implementable and something that we can do! |
@a-urth You can set up a container as a global var in the test, and use TestMain to start your containers before tests begin. They will be available to all tests.
|
Above is a decent solution if you are looking to reuse containers within one run of tests, across all tests but it is not at parity with Java's reusable containers implementation since that spans across JVM shutdowns as well. |
Please correct me if I'm wrong, but that still limits reuse per package, or? |
Relates #439 |
Seems to be implemented in #464 |
Hopefully the release will be made soon, I need to step back for a few days on vacations, and after that will work a great release. Sorry for the inconvenience In the meantime, do you think you can add a replace entry in your go.mod file pointing to the main branch? |
Closing as #464 is merged, thanks! |
Hi everyone. I've came across problem running multiple instances of the same container among couple of different tests. And in case its something resource heavy like elasticsearch it takes time to spawn, those so it kinda makes sense to reuse them if one of the containers is already running.
I found that such functionality was implemented into java version of the projects and quickly looking through documentation I haven't found anything similar here.
So is there any functionality to reuse containers or are there any plans to implement it?
testcontainers/testcontainers-java#1781
The text was updated successfully, but these errors were encountered: