2
2
# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED.
3
3
# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE
4
4
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5
- FROM selenium/base:3.141.59-zirconium
5
+ FROM selenium/base:4.0.0-alpha-5-20200326
6
6
LABEL authors=SeleniumHQ
7
7
8
8
USER root
@@ -13,6 +13,7 @@ USER root
13
13
RUN apt-get update -qqy \
14
14
&& apt-get -qqy install \
15
15
xvfb \
16
+ pulseaudio \
16
17
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
17
18
18
19
# ==============================
@@ -36,6 +37,23 @@ RUN apt-get -qqy update \
36
37
&& rm -rf /var/lib/apt/lists/* \
37
38
&& apt-get -qyy clean
38
39
40
+ # =====
41
+ # VNC
42
+ # =====
43
+ RUN apt-get update -qqy \
44
+ && apt-get -qqy install \
45
+ x11vnc \
46
+ && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
47
+
48
+ # =========
49
+ # fluxbox
50
+ # A fast, lightweight and responsive window manager
51
+ # =========
52
+ RUN apt-get update -qqy \
53
+ && apt-get -qqy install \
54
+ fluxbox \
55
+ && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
56
+
39
57
# ================
40
58
# Font libraries
41
59
# ================
@@ -88,6 +106,27 @@ COPY start-selenium-node.sh \
88
106
# ==============================
89
107
COPY selenium.conf /etc/supervisor/conf.d/
90
108
109
+ # ==============================
110
+ # Generating the VNC password as seluser
111
+ # So the service can be started with seluser
112
+ # ==============================
113
+
114
+ RUN mkdir -p ${HOME}/.vnc \
115
+ && x11vnc -storepasswd secret ${HOME}/.vnc/passwd
116
+
117
+ # ==========
118
+ # Relaxing permissions for OpenShift and other non-sudo environments
119
+ # ==========
120
+ RUN sudo chmod -R 777 ${HOME} \
121
+ && sudo chgrp -R 0 ${HOME} \
122
+ && sudo chmod -R g=u ${HOME}
123
+
124
+ # ==============================
125
+ # Scripts to run fluxbox and x11vnc
126
+ # ==============================
127
+ COPY start-fluxbox.sh \
128
+ start-vnc.sh \
129
+ /opt/bin/
91
130
92
131
# ============================
93
132
# Some configuration options
@@ -128,3 +167,5 @@ ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
128
167
129
168
# Creating base directory for Xvfb
130
169
RUN sudo mkdir -p /tmp/.X11-unix && sudo chmod 1777 /tmp/.X11-unix
170
+
171
+ EXPOSE 5900
0 commit comments