testcontainers / testcontainers-hs

Docker containers for your integration tests! http://hackage.haskell.org/package/testcontainers
MIT License
56 stars 12 forks source link

alex/reaper #33

Closed alexbiehl closed 1 year ago

alexbiehl commented 1 year ago

This PR introduces proper resource cleanup using the ryuk container. We attach a label containing a session id to each network and container and once done, ryuk cleans up all the resources. This allows us to worry less about container and network lifecycles.

This approach is also taken by the official testcontainers java library.