testcontainers / testcontainers/testcontainers-java

Set an order and waiting time for docker-compose based containers

Open
#5,245 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hello everyone!

I have a question and haven't found answer in docs or other issues. I'd like to create a sequence of containers as follows:

  1. db
  2. app1
  3. app2
  4. app3 (that should wait for app2's container return code 0 from)

All these 4 containers are defined in docker-compose file as services. My question is: Can we make somehow this scenario? If so - how we can do it?

Thanks for any help!

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 reviewing how docker-compose services are currently handled and whether service ordering or container return codes are exposed. The issue names no source files or tests; use the db, app1, app2, and app3 sequence as the acceptance scenario, including app3 waiting for app2 to return code 0.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, java
Domain
devops, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.