Skip to content

customization of volumes and advanced docker option is not allowed #332

@Donemmanuelo

Description

@Donemmanuelo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions