-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Allow adding custom external jars to classpath #2726
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
|
@VietND96 Do you have some thoughts on this? Shall I continue to work on it? |
|
There are people also try to add extra classpath, we can help in env var for them to append, but jars and classpath.txt (or text) need to be prepared and mounted to the container. |
Signed-off-by: Viet Nguyen Duc <[email protected]>
Signed-off-by: Viet Nguyen Duc <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|
@Trigtrig, can you review this once? |
|
@VietND96 Looks good to me 👍🏼 |
|
Ah, one minute too late. Thanks for merging! |
|
Thanks for your feedback. Since I moved fast to deploy new images soon 😄 |
User description
This is a draft showing the described changes to allow adding external jars to the classpath. I'm happy to add this functionality to the remaining images if you agree.
Description
Adds a new environment variable
SE_EXTRA_LIBSwhich allows to add custom external jars to the classpath.Motivation and Context
Selenium makes it possible to customize a node. While this works pretty well when running a node as shown in the documentation, it is not possible to achieve the same using the Docker images. Right now
--node-implementationcan be passed to thestart-*.shscript usingSE_OPTS, but there is no way to pass--extto it.Introducing a new environment variable representing
--extnamedSE_EXTRA_LIBSwould allow to extend the classpath in a simple way. The desired jars could then be added to the Docker container in the user's preferred way:This mechanism can be applied in the same way to all images.
Fixes #2714
Types of changes
Checklist
PR Type
Enhancement, Documentation
Description
Introduced
SE_EXTRA_LIBSenvironment variable to add custom jars.Enhanced classpath enrichment logic across all components.
Updated logging to display enriched classpath details.
Documented the new
SE_EXTRA_LIBSvariable inENV_VARIABLES.md.Changes walkthrough 📝
10 files
Add support for custom jars in DistributorAdd support for custom jars in EventBusAdd support for custom jars in HubAdd support for custom jars in NodeBaseAdd support for custom jars in NodeDockerAdd support for custom jars in RouterAdd support for custom jars in SessionQueueAdd support for custom jars in SessionsAdd support for custom jars in StandaloneAdd support for custom jars in StandaloneDocker1 files
Document SE_EXTRA_LIBS environment variable