Comments (8)
How about we just expose the X server domain socket in a volume like this:
http://stackoverflow.com/a/25168483
from docker-selenium.
It grants the container full access to the xserver on the host
from docker-selenium.
Just to clarify, is the current usage of xvfb
incompatible with the approach of mounting the host's X socket in, say, a StandaloneChrome
container?
from docker-selenium.
Correct me if I'm wrong, but I believe the answer to ^ is "yes". xvfb
sets up it's own X server, which is diametrically opposed to passing the socket from the host's X server in. Unwrapping the java ... -jar /opt/selenium/selenium-server-standalone.jar
from xvfb-run
, and passing DISPLAY
/mounting /tmp/.X11-unix
at docker run
time works as desired.
Would an option to bypass the xvfb-run
segment of each entrypoint be an acceptable solution? Something conceptually like:
if [ ! -z "$NO_XVFB" ]; then
java ${JAVA_OPTS} -jar /opt/selenium/selenium-server-standalone.jar \
${SE_OPTS} &
else
xvfb-run -n $SERVERNUM --server-args="-screen 0 $GEOMETRY -ac +extension RANDR" \
java ${JAVA_OPTS} -jar /opt/selenium/selenium-server-standalone.jar \
${SE_OPTS} &
fi
from docker-selenium.
I agree is now incompatible as of now.
I confirmed the x11 redirect works ~1yr ago on version v2.46.0-x11 while playing with Xephyr to redirect X to the docker host and passing -v /tmp/.X11-unix/X${XE_DISP_NUM}:/tmp/.X11-unix/X${XE_DISP_NUM}
among other things.
But drop it after because didn't really want to support this use case back then but if someone wants to implement it for real and become officially supported that might help.
from docker-selenium.
Pushed #346 and looking for feedback.
from docker-selenium.
Hi all,
Is this still relevant? This issue and the PR have been stale for ~1.5 years.
from docker-selenium.
Closing issue since it is completely stale (also the related PR).
from docker-selenium.
Related Issues (20)
- [🐛 Bug]: unable to upgrade Selenium 3 to Selenium 4 HOT 7
- [🐛 Bug]: '"profile.default_content_setting_values.automatic_downloads": 1' not working HOT 7
- [🐛 Bug]: Error when setting selenium options (SE_OPTS) HOT 4
- Dependency Dashboard
- [🐛 Bug]: Random GOAWAY frame received from Selenium Grid HOT 4
- [🐛 Bug]: Helm post-upgrade hook fails when recreating selenium-grid-edge-scaledobject HOT 24
- [🐛 Bug]: Unable to start docker-selenium selenium/standalone-chrome:4.18.1-20240224 using .yml file HOT 16
- [🐛 Bug]: The HTTP request to the remote WebDriver server for URL http://localhost:4444/wd/hub/session timed out HOT 4
- [🐛 Bug]: Many directories like .org.chromium.Chromium.TVyeMO in \tmp HOT 3
- [🐛 Bug]: Startup probe failed: bash: line 1: /opt/selenium/nodeProbe.sh: No such file or directory HOT 11
- [🚀 Feature]: Decreasing container layers HOT 7
- [🐛 Bug]: Regression in selenium/standalone-firefox between 123.0 and 124.0+ related to confirmation dialog with onbeforeunload HOT 7
- [🐛 Bug]: Standalone-Firefox: Bidi not active? HOT 5
- [🐛 Bug]: You need to enable JavaScript to run this app. in UI HOT 5
- [🐛 Bug]: Chrome docker tags 124.0 / 4.20 SessionNotCreatedException HOT 10
- [🐛 Bug]: ScaledObject errors out when ServiceName has been used - GKE HOT 4
- [🐛 Bug]: Nodes couldn't active when enabling autoscaling and deployed on EKS HOT 5
- [🐛 Bug]: Firefox driver fails when used in Selenium Grid HOT 6
- [🐛 Bug]: Selenium Grid 4.20.0 not fetching node after some time HOT 3
- [🚀 Feature]: Question - is there a way IE Mode in EDGE supported in Linux OS based Grid edge node. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-selenium.