@@ -33,14 +33,14 @@ ENV DEBIAN_FRONTEND=noninteractive \
33
33
SEL_GID=${GID} \
34
34
HOME=${HOME} \
35
35
TZ=${TZ} \
36
- SEL_DOWNLOAD_DIR=${HOME}/Downloads
36
+ SEL_DOWNLOAD_DIR=${HOME}/Downloads \
37
+ VIDEO_FOLDER="/videos"
37
38
38
39
# ========================
39
40
# Miscellaneous packages
40
41
# Includes minimal runtime used for executing non GUI Java programs
41
42
# ========================
42
- RUN --mount=type=secret,id=SEL_PASSWD \
43
- if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
43
+ RUN if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
44
44
echo "deb http://archive.ubuntu.com/ubuntu noble main universe\n " > /etc/apt/sources.list \
45
45
&& echo "deb http://archive.ubuntu.com/ubuntu noble-updates main universe\n " >> /etc/apt/sources.list \
46
46
&& echo "deb http://security.ubuntu.com/ubuntu noble-security main universe\n " >> /etc/apt/sources.list ; \
@@ -61,8 +61,10 @@ RUN --mount=type=secret,id=SEL_PASSWD \
61
61
gnupg2 \
62
62
libnss3-tools \
63
63
python3-pip \
64
- openjdk-${JRE_VERSION}-jre-headless \
65
- && if [ "${TARGETARCH}" = "arm" ] && [ "${TARGETVARIANT}" = "v7" ]; then \
64
+ python3-psutil \
65
+ openjdk-${JRE_VERSION}-jre-headless
66
+ RUN --mount=type=secret,id=SEL_PASSWD \
67
+ if [ "${TARGETARCH}" = "arm" ] && [ "${TARGETVARIANT}" = "v7" ]; then \
66
68
export ARCH=armhf ; \
67
69
else \
68
70
export ARCH=$(dpkg --print-architecture) ; \
@@ -93,18 +95,18 @@ RUN --mount=type=secret,id=SEL_PASSWD \
93
95
# Selenium & relaxing permissions for OpenShift and other non-sudo environments
94
96
# ==========
95
97
&& mkdir -p /opt/selenium /opt/selenium/assets /opt/selenium/secrets /var/run/supervisor /var/log/supervisor ${SEL_DOWNLOAD_DIR} \
96
- ${HOME}/.mozilla ${HOME}/.vnc ${HOME}/.pki/nssdb \
98
+ ${HOME}/.mozilla ${HOME}/.vnc ${HOME}/.pki/nssdb ${VIDEO_FOLDER} \
97
99
# NSSDB initialization with an empty password
98
100
&& certutil -d sql:${HOME}/.pki/nssdb -N --empty-password \
99
101
&& touch /opt/selenium/config.toml \
100
- && chown -R ${SEL_USER}:${SEL_GROUP} /opt/selenium /var/run/supervisor /var/log/supervisor /etc/passwd ${HOME} \
101
- && chmod -R 775 /opt/selenium /var/run/supervisor /var/log/supervisor /etc/passwd ${HOME} \
102
+ && chown -R ${SEL_USER}:${SEL_GROUP} /opt/selenium /var/run/supervisor /var/log/supervisor /etc/passwd ${HOME} ${VIDEO_FOLDER} \
103
+ && chmod -R 775 /opt/selenium /var/run/supervisor /var/log/supervisor /etc/passwd ${HOME} ${VIDEO_FOLDER} \
102
104
&& wget --no-verbose https://github.com/${AUTHORS}/selenium/releases/download/${RELEASE}/selenium-server-${VERSION}.jar \
103
105
-O /opt/selenium/selenium-server.jar \
104
- && chgrp -R 0 /opt/selenium ${HOME} /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
105
- && chmod -R g=u /opt/selenium ${HOME} /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
106
- && setfacl -Rm u:${SEL_USER}:rwx /opt /opt/selenium ${HOME} /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
107
- && setfacl -Rm g:${SEL_GROUP}:rwx /opt /opt/selenium ${HOME} /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
106
+ && chgrp -R 0 /opt/selenium ${HOME} ${VIDEO_FOLDER} /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
107
+ && chmod -R g=u /opt/selenium ${HOME} ${VIDEO_FOLDER} /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
108
+ && setfacl -Rm u:${SEL_USER}:rwx /opt /opt/selenium ${HOME} ${VIDEO_FOLDER} /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
109
+ && setfacl -Rm g:${SEL_GROUP}:rwx /opt /opt/selenium ${HOME} ${VIDEO_FOLDER} /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
108
110
# =====
109
111
# Download observability related OpenTelemetry jars and make them available in a separate directory
110
112
# so that the container can skip downloading them everytime it comes up
0 commit comments