Docker: set/unset stereotype via env var SE_NODE_BROWSER_VERSION and SE_BROWSER_BINARY_LOCATION #2520
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
Thanks for contributing to the Docker-Selenium project!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines, applied for this repository.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
By default, Node stereotype sets
browserVersionin short format e.g131.0.In a case, if want to unset
browserVersion(leave it as empty). Setting env varSE_NODE_BROWSER_VERSION=Similarly, for
SE_BROWSER_BINARY_LOCATIONto unset or set another location in the container for browser binary or based on official image, you rebuild your own, then can set via this env var.Motivation and Context
Types of changes
Checklist
PR Type
Enhancement
Description
SE_NODE_BROWSER_VERSIONenvironment variableSE_BROWSER_BINARY_LOCATIONenvironment variableChanges walkthrough 📝
Dockerfile
Add browser version environment variable configurationNodeBase/Dockerfile
SE_NODE_BROWSER_VERSIONwith defaultvalue "stable"
generate_config
Update browser configuration generation logicNodeBase/generate_config
SE_NODE_BROWSER_VERSIONenvironment variable
SE_BROWSER_BINARY_LOCATIONvariableSE__BROWSER_BINARY_LOCATIONtoSE_BROWSER_BINARY_LOCATIONgenerate_config
Enhance standalone configuration generationStandalone/generate_config
docker-compose-v3-test-parallel.yml
Add browser version configuration to test servicestests/docker-compose-v3-test-parallel.yml
SE_NODE_BROWSER_VERSIONenvironment variable to multipleservices
docker-compose-v3-test-standalone.yml
Add browser version configuration to standalone testtests/docker-compose-v3-test-standalone.yml
SE_NODE_BROWSER_VERSIONenvironment variable to standaloneservice