-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
As explained here by @vladmihalcea, integration test that use databases on docker can run faster if the container is configured to mount data folders on a tmpfs disk. It can be easily done with the argument --tmpfs at container creation time.
We need to check how this argument interacts with persistent volumes, as MongoDB and Postgres default images use them. Right now, we have to manually destroy each image when the container is stopped, but it is quite tricky and in fact if fails if the JVM is destroyed without calling shutdown hooks. Ideally, docker will not create the volume in the host if tmpfs overrides it, which means we wouldn't need to manually destroy the volumes on the host and the process will be more correct.