testcontainers / testcontainers/testcontainers-java
Set an order and waiting time for docker-compose based containers
Nobody has claimed this yet.
- 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:
- db
- app1
- app2
- 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
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 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