testcontainers / testcontainers/testcontainers-java

DockerComposeContainer doesn't support classpath resources for compose files

Open
#3,431 8 comments 9 reactions 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

The DockerComposeContainer only accepts "File" objects to load the compose files. This is very limiting, particularly if you want to package the compose file inside a jar. Allowing it to e.g. accept InputStream or a URL would allow a lot more options.

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 DockerComposeContainer and trace how compose files are currently loaded from File objects. Define completion as supporting classpath-backed resources through an InputStream or URL while preserving existing file support, then add or update tests covering the supported resource forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, java
Domain
testing
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.