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
browserVersion
in 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_LOCATION
to 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_VERSION
environment variableSE_BROWSER_BINARY_LOCATION
environment variableChanges walkthrough 📝
Dockerfile
Add browser version environment variable configuration
NodeBase/Dockerfile
SE_NODE_BROWSER_VERSION
with defaultvalue "stable"
generate_config
Update browser configuration generation logic
NodeBase/generate_config
SE_NODE_BROWSER_VERSION
environment variable
SE_BROWSER_BINARY_LOCATION
variableSE__BROWSER_BINARY_LOCATION
toSE_BROWSER_BINARY_LOCATION
generate_config
Enhance standalone configuration generation
Standalone/generate_config
docker-compose-v3-test-parallel.yml
Add browser version configuration to test services
tests/docker-compose-v3-test-parallel.yml
SE_NODE_BROWSER_VERSION
environment variable to multipleservices
docker-compose-v3-test-standalone.yml
Add browser version configuration to standalone test
tests/docker-compose-v3-test-standalone.yml
SE_NODE_BROWSER_VERSION
environment variable to standaloneservice