File tree Expand file tree Collapse file tree 7 files changed +14
-55
lines changed Expand file tree Collapse file tree 7 files changed +14
-55
lines changed Original file line number Diff line number Diff line change 1
1
NAME := $(or $(NAME ) ,$(NAME ) ,selenium)
2
2
CURRENT_DATE := $(shell date '+% Y% m% d')
3
3
BUILD_DATE := $(or $(BUILD_DATE ) ,$(BUILD_DATE ) ,$(CURRENT_DATE ) )
4
- VERSION := $(or $(VERSION ) ,$(VERSION ) ,4.0.0-alpha-6 )
4
+ VERSION := $(or $(VERSION ) ,$(VERSION ) ,4.0.0-alpha-7 )
5
5
TAG_VERSION := $(VERSION ) -$(BUILD_DATE )
6
6
NAMESPACE := $(or $(NAMESPACE ) ,$(NAMESPACE ) ,$(NAME ) )
7
7
AUTHORS := $(or $(AUTHORS ) ,$(AUTHORS ) ,SeleniumHQ)
Original file line number Diff line number Diff line change @@ -117,8 +117,7 @@ RUN sudo chmod -R 777 ${HOME} \
117
117
#==============================
118
118
# Scripts to run fluxbox and x11vnc
119
119
#==============================
120
- COPY start-fluxbox.sh \
121
- start-vnc.sh \
120
+ COPY start-vnc.sh \
122
121
/opt/bin/
123
122
124
123
#============================
@@ -129,6 +128,7 @@ ENV SCREEN_HEIGHT 1020
129
128
ENV SCREEN_DEPTH 24
130
129
ENV SCREEN_DPI 96
131
130
ENV DISPLAY :99.0
131
+ ENV DISPLAY_NUM 99
132
132
ENV START_XVFB true
133
133
134
134
#========================
Original file line number Diff line number Diff line change @@ -21,25 +21,6 @@ stderr_logfile_backups=5
21
21
stdout_capture_maxbytes=50MB
22
22
stderr_capture_maxbytes=50MB
23
23
24
- [program:fluxbox]
25
- priority=5
26
- command=/opt/bin/start-fluxbox.sh
27
- autostart=true
28
- autorestart=unexpected
29
- startsecs=0
30
- startretries=0
31
-
32
- ;Logs
33
- redirect_stderr=false
34
- stdout_logfile=/var/log/supervisor/fluxbox-stdout.log
35
- stderr_logfile=/var/log/supervisor/fluxbox-stderr.log
36
- stdout_logfile_maxbytes=50MB
37
- stderr_logfile_maxbytes=50MB
38
- stdout_logfile_backups=5
39
- stderr_logfile_backups=5
40
- stdout_capture_maxbytes=50MB
41
- stderr_capture_maxbytes=50MB
42
-
43
24
[program:vnc]
44
25
priority=10
45
26
command=/opt/bin/start-vnc.sh
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
#
3
- # IMPORTANT: Change this file only in directory NodeDebug !
3
+ # IMPORTANT: Change this file only in directory NodeBase !
4
4
5
5
if [ " ${START_XVFB} " = true ] ; then
6
6
if [ ! -z $VNC_NO_PASSWORD ]; then
@@ -20,8 +20,7 @@ if [ "${START_XVFB}" = true ] ; then
20
20
echo " Waiting for Xvfb..."
21
21
done
22
22
23
- # -noxrecord fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=859213 in x11vnc 0.9.13-2
24
- x11vnc ${X11VNC_OPTS} -forever -shared -rfbport 5900 -display ${DISPLAY} -noxrecord
23
+ x11vnc ${X11VNC_OPTS} -forever -shared -rfbport 5900 -rfbportv6 5900 -display ${DISPLAY}
25
24
else
26
25
echo " Vnc won't start because Xvfb is configured to not start."
27
26
fi
Original file line number Diff line number Diff line change @@ -5,7 +5,14 @@ if [ "${START_XVFB}" = true ] ; then
5
5
6
6
rm -f /tmp/.X* lock
7
7
8
- /usr/bin/Xvfb ${DISPLAY} -screen 0 ${GEOMETRY} -dpi ${SCREEN_DPI} -ac +extension RANDR
8
+ # Command reference
9
+ # http://manpages.ubuntu.com/manpages/bionic/man1/xvfb-run.1.html
10
+ # http://manpages.ubuntu.com/manpages/bionic/man1/Xvfb.1.html
11
+ # http://manpages.ubuntu.com/manpages/bionic/man1/Xserver.1.html
12
+ /usr/bin/xvfb-run --server-num=${DISPLAY_NUM} \
13
+ --listen-tcp \
14
+ --server-args=" -screen 0 ${GEOMETRY} -dpi ${SCREEN_DPI} -listen tcp -noreset -ac +extension RANDR" \
15
+ /usr/bin/fluxbox -display ${DISPLAY}
9
16
else
10
- echo " Xvfb won't start. Chrome/Firefox can only run in headless mode. Remember to set the 'headless' flag in your test."
17
+ echo " Xvfb and Fluxbox won't start. Chrome/Firefox/Opera can only run in headless mode. Remember to set the 'headless' flag in your test."
11
18
fi
Original file line number Diff line number Diff line change @@ -21,25 +21,6 @@ stderr_logfile_backups=5
21
21
stdout_capture_maxbytes=50MB
22
22
stderr_capture_maxbytes=50MB
23
23
24
- [program:fluxbox]
25
- priority=5
26
- command=/opt/bin/start-fluxbox.sh
27
- autostart=true
28
- autorestart=unexpected
29
- startsecs=0
30
- startretries=0
31
-
32
- ;Logs
33
- redirect_stderr=false
34
- stdout_logfile=/var/log/supervisor/fluxbox-stdout.log
35
- stderr_logfile=/var/log/supervisor/fluxbox-stderr.log
36
- stdout_logfile_maxbytes=50MB
37
- stderr_logfile_maxbytes=50MB
38
- stdout_logfile_backups=5
39
- stderr_logfile_backups=5
40
- stdout_capture_maxbytes=50MB
41
- stderr_capture_maxbytes=50MB
42
-
43
24
[program:vnc]
44
25
priority=10
45
26
command=/opt/bin/start-vnc.sh
You can’t perform that action at this time.
0 commit comments