testcontainers / testcontainers/testcontainers-java
An option to provide the docker-compose executable in local mode
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
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 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