testcontainers / testcontainers/testcontainers-java

docker-compose files from two different locations

Open
#1,863 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Why is it not possible to supply two docker-compose.yml-files from different directories to the DockerComposeContainer-Constructor?

e.g. like:

new DockerComposeContainer(new File("first/directory/docker-compose.yml"), new File("first/docker-compose.override.yml"))

There is always occuring the a FileNotFoundError in the containerized docker environment.

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 by tracing the DockerComposeContainer constructor and reproducing the example with compose files from different directories. Identify why the containerized Docker environment cannot find the second file. Done means both files can be supplied from separate locations without a FileNotFoundError, with coverage for the reported case.

Written by the indexing model from the issue text.

Assessment

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