-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[grid] Update container label compose.oneoff in Dynamic Grid
#16613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
PR Compliance Guide 🔍(Compliance updated until commit f7e0af3)Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label Previous compliance checksCompliance check up to commit fd8260c
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
User description
🔗 Related Issues
💥 What does this PR do?
In previous PR #16599 - Improve browser container labels and naming in Dynamic Grid.
If Docker Compose starts with
--exit-code-from, the compose stack will exit when any of the dynamic containers (Grid browser or recorder) terminate.The
com.docker.compose.oneoff=Falselabel marks containers as service containers rather than one-off containers. When Docker Compose runs with --exit-code-from, it only monitors containers that are marked as one-off (or the specific container named in the flag). By setting this label to False, these dynamically created browser and video containers will:This is particularly useful when running Dynamic Grid in Docker Compose, where browser container and test container are in same stack, and only listen to the status of test container for exit code.
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Add
com.docker.compose.oneoff=Falselabel to dynamic containersPrevents compose stack exit when browser containers terminate
Allows main services to continue running independently
Ensures proper container lifecycle management in Docker Compose
Diagram Walkthrough
File Walkthrough
DockerSessionFactory.java
Add oneoff label to dynamic container configurationjava/src/org/openqa/selenium/grid/node/docker/DockerSessionFactory.java
com.docker.compose.oneoff=Falselabel to compose labels map