testcontainers / testcontainers/testcontainers-java

An option to provide the docker-compose executable in local mode

Open
#3,491 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
8.7k
Forks
1.9k
Avg merge
2d 17h
Merged PRs (30d)
9

Description

Currently, testcontainers only looks at the PATH to find the docker-compose executable (when running in "local mode"). It would be nice to have a way to explicitly provide it to avoid any PATH manipulation (which is not convenient to write hermetic tests with Bazel for instance).

I would imagine an optional argument to the withLocalCompose function:

public SELF withLocalCompose(boolean localCompose, String executable)

Contributor guide

Open the contributing guide

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 withLocalCompose function and locate its existing tests. Add coverage for explicitly selecting a docker-compose executable without PATH manipulation, and verify that local mode uses the provided executable.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, java
Domain
developer-experience, testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.