testcontainers / testcontainers/testcontainers-hs

Make it possible to customize 'ryuk' reaper config

Open
#50 3 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.