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

Commit

Permalink
Sync update from upstream
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 committed Jan 24, 2024
1 parent 9b7343b commit 5b4985b
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions NodeBase/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -151,26 +151,6 @@ COPY --chown="${SEL_UID}:${SEL_GID}" start-selenium-node.sh \
#==============================
COPY selenium.conf /etc/supervisor/conf.d/

#==============================
# Generating the VNC password as seluser
# So the service can be started with seluser
#==============================

RUN mkdir -p ${HOME}/.vnc \
&& x11vnc -storepasswd secret ${HOME}/.vnc/passwd

# Added to avoid the following sudo error while running multi-arch builds:
# "sudo: effective uid is not 0, is /usr/bin/sudo on a file system with
# the 'nosuid' option set or an NFS file system without root privileges?"
USER root

#==========
# Relaxing permissions for OpenShift and other non-sudo environments
#==========
RUN sudo chmod -R 775 ${HOME} \
&& sudo chgrp -R 0 ${HOME} \
&& sudo chmod -R g=u ${HOME}

#==============================
# Scripts to run fluxbox, x11vnc and noVNC
#==============================
Expand Down Expand Up @@ -219,15 +199,6 @@ ENV SE_NODE_OVERRIDE_MAX_SESSIONS false
# Following line fixes https://github.com/SeleniumHQ/docker-selenium/issues/87
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null

# Added to avoid sudo-related multi-arch build errors
USER root

# Creating base directory for Xvfb
RUN mkdir -p /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix

# Added to avoid sudo-related multi-arch build errors
USER 1200

# Copying configuration script generator
COPY --chown="${SEL_UID}:${SEL_GID}" generate_config /opt/bin/generate_config

Expand Down

0 comments on commit 5b4985b

Please sign in to comment.