Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit f109bd4

Browse files
Merge from upstream
2 parents 1d03b0f + f4c0435 commit f109bd4

24 files changed

+209
-197
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ body:
5555
attributes:
5656
label: Docker Selenium version (tag)
5757
description: What version of Docker Selenium are you using?
58-
placeholder: 4.8.1-20230221? Please use the full tag, avoid "latest"
58+
placeholder: 4.8.1-20230306? Please use the full tag, avoid "latest"
5959
validations:
6060
required: true

Base/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#FROM ubuntu:focal-20220302
55
#FROM ubuntu:focal-20220415
66
#FROM ubuntu:focal-20220531
7+
#FROM ubuntu:focal-20230301
78
FROM debian:latest
89
LABEL authors="Selenium <[email protected]>"
910

NodeBase/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ ENV SE_SCREEN_HEIGHT 1020
170170
ENV SE_SCREEN_DEPTH 24
171171
ENV SE_SCREEN_DPI 96
172172
ENV SE_START_XVFB true
173-
# Temporal fix for https://github.com/SeleniumHQ/docker-selenium/issues/1610
174-
ENV START_XVFB true
173+
ENV SE_START_VNC true
175174
ENV SE_START_NO_VNC true
176175
ENV SE_NO_VNC_PORT 7900
177176
ENV SE_VNC_PORT 5900

NodeBase/start-novnc.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
# IMPORTANT: Change this file only in directory NodeBase!
44

55
if [ "${START_XVFB:-$SE_START_XVFB}" = true ] ; then
6-
if [ "${START_NO_VNC:-$SE_START_NO_VNC}" = true ] ; then
7-
/opt/bin/noVNC/utils/novnc_proxy --listen ${NO_VNC_PORT:-$SE_NO_VNC_PORT} --vnc localhost:${VNC_PORT:-$SE_VNC_PORT}
6+
if [ "${START_VNC:-$SE_START_VNC}" = true ] ; then
7+
if [ "${START_NO_VNC:-$SE_START_NO_VNC}" = true ] ; then
8+
/opt/bin/noVNC/utils/novnc_proxy --listen ${NO_VNC_PORT:-$SE_NO_VNC_PORT} --vnc localhost:${VNC_PORT:-$SE_VNC_PORT}
9+
else
10+
echo "noVNC won't start because SE_START_NO_VNC is false."
11+
fi
812
else
9-
echo "noVNC won't start because SE_START_NO_VNC is false."
13+
echo "noVNC won't start because VNC is configured to not start."
1014
fi
1115
else
1216
echo "noVNC won't start because Xvfb is configured to not start."

NodeBase/start-vnc.sh

Lines changed: 37 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,45 @@
33
# IMPORTANT: Change this file only in directory NodeBase!
44

55
if [ "${START_XVFB:-$SE_START_XVFB}" = true ] ; then
6-
# Centering wallpaper
7-
for i in $(seq 1 10)
8-
do
9-
sleep 0.5
10-
echo "Centering wallpaper"
11-
/usr/bin/fbsetbg -c /usr/share/images/fluxbox/ubuntu-light.png
12-
if [ $? -eq 0 ]; then
13-
break
14-
fi
15-
done
16-
17-
VNC_NO_PASSWORD=${VNC_NO_PASSWORD:-$SE_VNC_NO_PASSWORD}
18-
if [ ! -z $VNC_NO_PASSWORD ]; then
19-
echo "Starting VNC server without password authentication"
20-
X11VNC_OPTS=
21-
else
22-
X11VNC_OPTS=-usepw
23-
fi
24-
25-
VNC_VIEW_ONLY=${VNC_VIEW_ONLY:-$SE_VNC_VIEW_ONLY}
26-
if [ ! -z $VNC_VIEW_ONLY ]; then
27-
echo "Starting VNC server with viewonly option"
28-
X11VNC_OPTS="${X11VNC_OPTS} -viewonly"
29-
fi
6+
if [ "${START_VNC:-$SE_START_VNC}" = true ] ; then
7+
# Centering wallpaper
8+
for i in $(seq 1 10)
9+
do
10+
sleep 0.5
11+
echo "Centering wallpaper"
12+
/usr/bin/fbsetbg -c /usr/share/images/fluxbox/ubuntu-light.png
13+
if [ $? -eq 0 ]; then
14+
break
15+
fi
16+
done
17+
VNC_NO_PASSWORD=${VNC_NO_PASSWORD:-$SE_VNC_NO_PASSWORD}
18+
if [ ! -z $VNC_NO_PASSWORD ]; then
19+
echo "Starting VNC server without password authentication"
20+
X11VNC_OPTS=
21+
else
22+
X11VNC_OPTS=-usepw
23+
fi
3024

31-
for i in $(seq 1 10)
32-
do
33-
sleep 1
34-
xdpyinfo -display ${DISPLAY} >/dev/null 2>&1
35-
if [ $? -eq 0 ]; then
36-
break
25+
VNC_VIEW_ONLY=${VNC_VIEW_ONLY:-$SE_VNC_VIEW_ONLY}
26+
if [ ! -z $VNC_VIEW_ONLY ]; then
27+
echo "Starting VNC server with viewonly option"
28+
X11VNC_OPTS="${X11VNC_OPTS} -viewonly"
3729
fi
38-
echo "Waiting for Xvfb..."
39-
done
4030

41-
x11vnc ${X11VNC_OPTS} -forever -shared -rfbport ${VNC_PORT:-$SE_VNC_PORT} -rfbportv6 ${VNC_PORT:-$SE_VNC_PORT} -display ${DISPLAY}
31+
for i in $(seq 1 10)
32+
do
33+
sleep 1
34+
xdpyinfo -display ${DISPLAY} >/dev/null 2>&1
35+
if [ $? -eq 0 ]; then
36+
break
37+
fi
38+
echo "Waiting for Xvfb..."
39+
done
40+
41+
x11vnc ${X11VNC_OPTS} -forever -shared -rfbport ${VNC_PORT:-$SE_VNC_PORT} -rfbportv6 ${VNC_PORT:-$SE_VNC_PORT} -display ${DISPLAY}
42+
else
43+
echo "VNC won't start because SE_START_VNC is false."
44+
fi
4245
else
43-
echo "Vnc won't start because Xvfb is configured to not start."
46+
echo "VNC won't start because Xvfb is configured to not start."
4447
fi

NodeDocker/config.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Configs have a mapping between the Docker image to use and the capabilities that need to be matched to
33
# start a container with the given image.
44
configs = [
5-
"selenium/standalone-firefox:4.8.1-20230221", '{"browserName": "firefox", "platformName": "linux"}',
6-
"selenium/standalone-chrome:4.8.1-20230221", '{"browserName": "chrome", "platformName": "linux"}',
7-
"selenium/standalone-edge:4.8.1-20230221", '{"browserName": "MicrosoftEdge", "platformName": "linux"}'
5+
"selenium/standalone-firefox:4.8.1-20230306", '{"browserName": "firefox", "platformName": "linux"}',
6+
"selenium/standalone-chrome:4.8.1-20230306", '{"browserName": "chrome", "platformName": "linux"}',
7+
"selenium/standalone-edge:4.8.1-20230306", '{"browserName": "MicrosoftEdge", "platformName": "linux"}'
88
]
99

1010
# URL for connecting to the docker daemon
@@ -14,7 +14,7 @@ configs = [
1414
# socat -4 TCP-LISTEN:2375,fork UNIX-CONNECT:/var/run/docker.sock
1515
url = "http://127.0.0.1:2375"
1616
# Docker image used for video recording
17-
video-image = "selenium/video:ffmpeg-4.3.1-20230221"
17+
video-image = "selenium/video:ffmpeg-4.3.1-20230306"
1818

1919
# Uncomment the following section if you are running the node on a separate VM
2020
# Fill out the placeholders with appropriate values

0 commit comments

Comments
 (0)