-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[grid][java] browser containers provisioned in dynamic grid can get hostconfig from node-docker #13804
Conversation
…-docker hostConfig Signed-off-by: Viet Nguyen Duc <[email protected]>
PR Description updated to latest commit (a73ba2f)
|
PR Review
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
08787b9
to
d5971ea
Compare
@diemol, could you please review this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @VietND96!
Just a comment in one of the changes.
Signed-off-by: Viet Nguyen Duc <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @VietND96!
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Motivation and Context
Fix: SeleniumHQ/docker-selenium#2143
Fix: SeleniumHQ/docker-selenium#2098
Fix: SeleniumHQ/docker-selenium#1812
Fix: SeleniumHQ/docker-selenium#1642
Docker compose file to deploy node-docker looks like
config.toml
looks likeWith the config key
host-config-keys
under section[docker]
in aconfig.toml
file (or CLI option--docker-host-config-keys
). Users can specify a list of docker host configuration keys that should be passed to browser containers.Valid key names for Docker host config can be found in the Docker API documentation or via the command
docker inspect
the node-docker container.Steps to debug
Set the log-level to
FINE
, and you are able to see theContainer config
looks likeTypes of changes
Checklist
Type
enhancement
Description
hostConfig
inContainerConfig
andContainerInfo
to manage and apply Docker container configurations.--docker-host-config-keys
to specify which host configuration keys should be passed to browser containers.DockerSessionFactory
to apply specified host configurations to browser containers, improving flexibility in container management.Changes walkthrough
ContainerConfig.java
Enhance ContainerConfig with Host Configuration Support
java/src/org/openqa/selenium/docker/ContainerConfig.java
hostConfig
inContainerConfig
to manage Dockercontainer configurations.
getHostConfig
to filter andapply host configurations based on provided keys.
ContainerInfo.java
Include Host Config in ContainerInfo
java/src/org/openqa/selenium/docker/ContainerInfo.java
hostConfig
map to store Docker host configurations.hostConfig
and added a getter methodfor it.
InspectContainer.java
Update InspectContainer to Fetch HostConfig
java/src/org/openqa/selenium/docker/v1_41/InspectContainer.java
apply
method to includehostConfig
inContainerInfo
instantiation.
DockerFlags.java
Add Docker Host Config Keys Flag
java/src/org/openqa/selenium/grid/node/docker/DockerFlags.java
--docker-host-config-keys
flag to specify Docker containerhost configuration keys.
DockerOptions.java
Implement Host Config Keys Handling in DockerOptions
java/src/org/openqa/selenium/grid/node/docker/DockerOptions.java
hostConfigKeys
to filter and apply specific Dockerhost configurations.
DockerSessionFactory.java
Enhance DockerSessionFactory with Host Config Management
java/src/org/openqa/selenium/grid/node/docker/DockerSessionFactory.java
hostConfig
andhostConfigKeys
to manage Docker hostconfigurations for browser containers.
createBrowserContainer
method to apply host configurationsbased on the provided keys.