testcontainers / testcontainers/testcontainers-hs
Make it possible to customize 'ryuk' reaper config
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 78
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
I stumbled upon https://github.com/moby/moby/issues/42442 which periodically breaks tests that are based on testcontainers-hs.
One way to workaround this issue is to disable IPv6 altogether on the machine that runs tests, but IMO this doesn't sound like a nice solution since test suite results consistency will depend on local setup.
Instead, it'd be better to run the ryuk container with --publish 127.0.0.1::8080 instead of --publish 8080, however, this is not viable with the current interface provided by testcontainers-hs.
What I propose to do is to add a version of withContainers function that will allow running the TestContainer action either with custom Config or with custom Reaper container.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the withContainers function and inspect how TestContainer, Config, and the Reaper container are currently configured. The change should allow the test action to use custom configuration or a custom Reaper, including the proposed 127.0.0.1 port binding; add coverage showing that customization works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, haskell
- Domain
- devops, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100