-
Notifications
You must be signed in to change notification settings - Fork 62
customization of volumes and advanced docker option is not allowed #332
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
Comments
Hi @Donemmanuelo 👋 Perhaps I misunderstood something, but some quick answers:
|
Hello @DDtKey The advanced docker option i was talking about was the bind mount: Persistent data, sharing config files, cache reuse, though never stated in your documentation, named volumes: Useful if you want Docker to manage volume lifecycle and the Network modes : Sometimes needed for simulating host network behavior or debugging, which are not supported, in the exception of bind mount supported by the use of with_mount(). |
Could you point me to particular docker feature you're missing? (so we will be able to track each of them separately if any)
In addition to that, we expose the pre-configured Docker client: docker_client_instance if you have some specific needs on top of the current functionality __ So if you have particular question/suggestion related to the core functionallity - it's better to create an issue there |
when it comes to using testcontainers-modules for different modulus foeinstance postgres module, it's practically impossible to carry out a real integration test for postgres data persistency, because each integration test uses a different database instance, thus all data stored in it is drop when the database is stopped making it tedious to check data persistency, but however using volumes and advanded docker option allow us to:
Mounts a volume at /var/lib/module/data, which is where module stores its data.
That means data written to the DB is stored in the mounted directory (/tmp/module_data_test), not lost with the container lifecycle.
The text was updated successfully, but these errors were encountered: