Skip to content

Try to improve testing performance by using tmpfs disks #9

@gortiz

Description

@gortiz

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions