Skip to content

Commit bbf83bb

Browse files
committed
Merging normal and debug images
Preparing for Selenium 4 Alpha 4
1 parent 2365193 commit bbf83bb

35 files changed

+148
-958
lines changed

Makefile

Lines changed: 32 additions & 127 deletions
Large diffs are not rendered by default.

NodeBase/Dockerfile.txt

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,23 @@ RUN apt-get -qqy update \
3030
&& rm -rf /var/lib/apt/lists/* \
3131
&& apt-get -qyy clean
3232

33+
#=====
34+
# VNC
35+
#=====
36+
RUN apt-get update -qqy \
37+
&& apt-get -qqy install \
38+
x11vnc \
39+
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
40+
41+
#=========
42+
# fluxbox
43+
# A fast, lightweight and responsive window manager
44+
#=========
45+
RUN apt-get update -qqy \
46+
&& apt-get -qqy install \
47+
fluxbox \
48+
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
49+
3350
#================
3451
# Font libraries
3552
#================
@@ -82,6 +99,27 @@ COPY start-selenium-node.sh \
8299
#==============================
83100
COPY selenium.conf /etc/supervisor/conf.d/
84101

102+
#==============================
103+
# Generating the VNC password as seluser
104+
# So the service can be started with seluser
105+
#==============================
106+
107+
RUN mkdir -p ${HOME}/.vnc \
108+
&& x11vnc -storepasswd secret ${HOME}/.vnc/passwd
109+
110+
#==========
111+
# Relaxing permissions for OpenShift and other non-sudo environments
112+
#==========
113+
RUN sudo chmod -R 777 ${HOME} \
114+
&& sudo chgrp -R 0 ${HOME} \
115+
&& sudo chmod -R g=u ${HOME}
116+
117+
#==============================
118+
# Scripts to run fluxbox and x11vnc
119+
#==============================
120+
COPY start-fluxbox.sh \
121+
start-vnc.sh \
122+
/opt/bin/
85123

86124
#============================
87125
# Some configuration options
@@ -122,3 +160,5 @@ ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
122160

123161
# Creating base directory for Xvfb
124162
RUN sudo mkdir -p /tmp/.X11-unix && sudo chmod 1777 /tmp/.X11-unix
163+
164+
EXPOSE 5900

NodeBase/selenium.conf

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; Documentation of this file format -> http://supervisord.org/configuration.html
22

3-
; Priority 0 - xvfb, 5 - fluxbox (debug images), 10 - x11vnc (debug images), 15 - selenium-node
3+
; Priority 0 - xvfb, 5 - fluxbox, 10 - x11vnc, 15 - selenium-node
44

55
[program:xvfb]
66
priority=0
@@ -21,6 +21,43 @@ stderr_logfile_backups=5
2121
stdout_capture_maxbytes=50MB
2222
stderr_capture_maxbytes=50MB
2323

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+
[program:vnc]
44+
priority=10
45+
command=/opt/bin/start-vnc.sh
46+
autostart=true
47+
autorestart=false
48+
startsecs=0
49+
startretries=0
50+
51+
;Logs
52+
redirect_stderr=false
53+
stdout_logfile=/var/log/supervisor/vnc-stdout.log
54+
stderr_logfile=/var/log/supervisor/vnc-stderr.log
55+
stdout_logfile_maxbytes=50MB
56+
stderr_logfile_maxbytes=50MB
57+
stdout_logfile_backups=5
58+
stderr_logfile_backups=5
59+
stdout_capture_maxbytes=50MB
60+
stderr_capture_maxbytes=50MB
2461

2562
[program:selenium-node]
2663
priority=15
File renamed without changes.
File renamed without changes.

NodeChromeDebug/Dockerfile

Lines changed: 0 additions & 56 deletions
This file was deleted.

NodeChromeDebug/README-short.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

NodeChromeDebug/README.md

Lines changed: 0 additions & 76 deletions
This file was deleted.

NodeDebug/Dockerfile.txt

Lines changed: 0 additions & 49 deletions
This file was deleted.

NodeDebug/README-short.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)