-
-
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 <nguyenducviet4496@gmail.com>
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
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_LIBS
which 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-implementation
can be passed to thestart-*.sh
script usingSE_OPTS
, but there is no way to pass--ext
to it.Introducing a new environment variable representing
--ext
namedSE_EXTRA_LIBS
would 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_LIBS
environment variable to add custom jars.Enhanced classpath enrichment logic across all components.
Updated logging to display enriched classpath details.
Documented the new
SE_EXTRA_LIBS
variable inENV_VARIABLES.md
.Changes walkthrough 📝
10 files
Add support for custom jars in Distributor
Add support for custom jars in EventBus
Add support for custom jars in Hub
Add support for custom jars in NodeBase
Add support for custom jars in NodeDocker
Add support for custom jars in Router
Add support for custom jars in SessionQueue
Add support for custom jars in Sessions
Add support for custom jars in Standalone
Add support for custom jars in StandaloneDocker
1 files
Document SE_EXTRA_LIBS environment variable