-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[grid][java] browser containers provisioned in dynamic grid can get hostconfig from node-docker #13804
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
…-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? |
diemol
left a comment
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]>
diemol
left a comment
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.tomllooks likeWith the config key
host-config-keysunder section[docker]in aconfig.tomlfile (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 inspectthe node-docker container.Steps to debug
Set the log-level to
FINE, and you are able to see theContainer configlooks likeTypes of changes
Checklist
Type
enhancement
Description
hostConfiginContainerConfigandContainerInfoto manage and apply Docker container configurations.--docker-host-config-keysto specify which host configuration keys should be passed to browser containers.DockerSessionFactoryto apply specified host configurations to browser containers, improving flexibility in container management.Changes walkthrough
ContainerConfig.java
Enhance ContainerConfig with Host Configuration Supportjava/src/org/openqa/selenium/docker/ContainerConfig.java
hostConfiginContainerConfigto manage Dockercontainer configurations.
getHostConfigto filter andapply host configurations based on provided keys.
ContainerInfo.java
Include Host Config in ContainerInfojava/src/org/openqa/selenium/docker/ContainerInfo.java
hostConfigmap to store Docker host configurations.hostConfigand added a getter methodfor it.
InspectContainer.java
Update InspectContainer to Fetch HostConfigjava/src/org/openqa/selenium/docker/v1_41/InspectContainer.java
applymethod to includehostConfiginContainerInfoinstantiation.
DockerFlags.java
Add Docker Host Config Keys Flagjava/src/org/openqa/selenium/grid/node/docker/DockerFlags.java
--docker-host-config-keysflag to specify Docker containerhost configuration keys.
DockerOptions.java
Implement Host Config Keys Handling in DockerOptionsjava/src/org/openqa/selenium/grid/node/docker/DockerOptions.java
hostConfigKeysto filter and apply specific Dockerhost configurations.
DockerSessionFactory.java
Enhance DockerSessionFactory with Host Config Managementjava/src/org/openqa/selenium/grid/node/docker/DockerSessionFactory.java
hostConfigandhostConfigKeysto manage Docker hostconfigurations for browser containers.
createBrowserContainermethod to apply host configurationsbased on the provided keys.