Open gaby opened 1 year ago
Ping @tillahoffmann
Sounds useful; open to contributions. You may be able to use with_kwargs
in the meantime to mount a temporary file system.
To whoever is looking for how to do it with with_kwargs
, here it is:
with_kwargs(
tmpfs={"/var/lib/mysql": "rw"}
)
This sped up mysql:8.0
docker container start up by 3 or 4 for me
@rparme Thank you! 💪
Currently we are using tmpfs mounts with testcontainers-go to speed up bootstraping databases during CI. The data folder of the database gets mounted into a tmpfs mount which speeds up since disk i/o is avoided.
We have some components using python and noticed that testcontainers-python doesnt support tmpfs mounts.
PR for testcontainers-go here: https://github.com/testcontainers/testcontainers-go/pull/131