diff --git a/static/chrome/Dockerfile b/static/chrome/Dockerfile index 883996929..d7ab4efc2 100644 --- a/static/chrome/Dockerfile +++ b/static/chrome/Dockerfile @@ -21,7 +21,9 @@ COPY entrypoint.sh / RUN \ chmod +x /usr/bin/chromedriver && \ - chown -R selenium:nogroup /etc/opt/chrome/policies/managed/ + chown -R selenium:nogroup /etc/opt/chrome/policies/managed/ && \ + echo "cookie-file = ~/.config/pulse/cookie" >> /etc/pulse/client.conf + USER selenium EXPOSE 4444 diff --git a/static/chrome/entrypoint.sh b/static/chrome/entrypoint.sh index 4f83a589a..8ecd91f43 100755 --- a/static/chrome/entrypoint.sh +++ b/static/chrome/entrypoint.sh @@ -71,10 +71,10 @@ XSELD_PID=$! while ip addr | grep inet | grep -q tentative > /dev/null; do sleep 0.1; done -mkdir -p ~/pulse/.config/pulse -echo -n 'gIvST5iz2S0J1+JlXC1lD3HWvg61vDTV1xbmiGxZnjB6E3psXsjWUVQS4SRrch6rygQgtpw7qmghDFTaekt8qWiCjGvB0LNzQbvhfs1SFYDMakmIXuoqYoWFqTJ+GOXYByxpgCMylMKwpOoANEDePUCj36nwGaJNTNSjL8WBv+Bf3rJXqWnJ/43a0hUhmBBt28Dhiz6Yqowa83Y4iDRNJbxih6rB1vRNDKqRr/J9XJV+dOlM0dI+K6Vf5Ag+2LGZ3rc5sPVqgHgKK0mcNcsn+yCmO+XLQHD1K+QgL8RITs7nNeF1ikYPVgEYnc0CGzHTMvFR7JLgwL2gTXulCdwPbg=='| base64 -d>~/pulse/.config/pulse/cookie -HOME=$HOME/pulse pulseaudio --start --exit-idle-time=-1 -HOME=$HOME/pulse pactl load-module module-native-protocol-tcp +mkdir -p ~/.config/pulse +echo -n 'gIvST5iz2S0J1+JlXC1lD3HWvg61vDTV1xbmiGxZnjB6E3psXsjWUVQS4SRrch6rygQgtpw7qmghDFTaekt8qWiCjGvB0LNzQbvhfs1SFYDMakmIXuoqYoWFqTJ+GOXYByxpgCMylMKwpOoANEDePUCj36nwGaJNTNSjL8WBv+Bf3rJXqWnJ/43a0hUhmBBt28Dhiz6Yqowa83Y4iDRNJbxih6rB1vRNDKqRr/J9XJV+dOlM0dI+K6Vf5Ag+2LGZ3rc5sPVqgHgKK0mcNcsn+yCmO+XLQHD1K+QgL8RITs7nNeF1ikYPVgEYnc0CGzHTMvFR7JLgwL2gTXulCdwPbg=='| base64 -d>~/.config/pulse/cookie +pulseaudio --start --exit-idle-time=-1 +pactl load-module module-native-protocol-tcp PULSE_PID=$(ps --no-headers -C pulseaudio -o pid | sed -r 's/( )+//g') /usr/bin/xvfb-run -l -n "$DISPLAY_NUM" -s "-ac -screen 0 $SCREEN_RESOLUTION -noreset -listen tcp" /usr/bin/fluxbox -display "$DISPLAY" -log /dev/null 2>/dev/null & diff --git a/static/chromium/Dockerfile b/static/chromium/Dockerfile index e73cfef7c..cdb091d75 100644 --- a/static/chromium/Dockerfile +++ b/static/chromium/Dockerfile @@ -4,7 +4,10 @@ FROM selenoid/dev_chromium:$VERSION ENV DBUS_SESSION_BUS_ADDRESS=/dev/null COPY entrypoint.sh / -RUN chmod +x /usr/bin/chromedriver +RUN \ + chmod +x /usr/bin/chromedriver && \ + echo "cookie-file = ~/.config/pulse/cookie" >> /etc/pulse/client.conf + USER selenium EXPOSE 4444 diff --git a/static/chromium/entrypoint.sh b/static/chromium/entrypoint.sh index b364ec463..12adbfa40 100755 --- a/static/chromium/entrypoint.sh +++ b/static/chromium/entrypoint.sh @@ -57,10 +57,10 @@ XSELD_PID=$! while ip addr | grep inet | grep -q tentative > /dev/null; do sleep 0.1; done -mkdir -p ~/pulse/.config/pulse -echo -n 'gIvST5iz2S0J1+JlXC1lD3HWvg61vDTV1xbmiGxZnjB6E3psXsjWUVQS4SRrch6rygQgtpw7qmghDFTaekt8qWiCjGvB0LNzQbvhfs1SFYDMakmIXuoqYoWFqTJ+GOXYByxpgCMylMKwpOoANEDePUCj36nwGaJNTNSjL8WBv+Bf3rJXqWnJ/43a0hUhmBBt28Dhiz6Yqowa83Y4iDRNJbxih6rB1vRNDKqRr/J9XJV+dOlM0dI+K6Vf5Ag+2LGZ3rc5sPVqgHgKK0mcNcsn+yCmO+XLQHD1K+QgL8RITs7nNeF1ikYPVgEYnc0CGzHTMvFR7JLgwL2gTXulCdwPbg=='| base64 -d>~/pulse/.config/pulse/cookie -HOME=$HOME/pulse pulseaudio --start --exit-idle-time=-1 -HOME=$HOME/pulse pactl load-module module-native-protocol-tcp +mkdir -p ~/.config/pulse +echo -n 'gIvST5iz2S0J1+JlXC1lD3HWvg61vDTV1xbmiGxZnjB6E3psXsjWUVQS4SRrch6rygQgtpw7qmghDFTaekt8qWiCjGvB0LNzQbvhfs1SFYDMakmIXuoqYoWFqTJ+GOXYByxpgCMylMKwpOoANEDePUCj36nwGaJNTNSjL8WBv+Bf3rJXqWnJ/43a0hUhmBBt28Dhiz6Yqowa83Y4iDRNJbxih6rB1vRNDKqRr/J9XJV+dOlM0dI+K6Vf5Ag+2LGZ3rc5sPVqgHgKK0mcNcsn+yCmO+XLQHD1K+QgL8RITs7nNeF1ikYPVgEYnc0CGzHTMvFR7JLgwL2gTXulCdwPbg=='| base64 -d>~/.config/pulse/cookie +pulseaudio --start --exit-idle-time=-1 +pactl load-module module-native-protocol-tcp PULSE_PID=$(ps --no-headers -C pulseaudio -o pid | sed -r 's/( )+//g') /usr/bin/xvfb-run -l -n "$DISPLAY_NUM" -s "-ac -screen 0 $SCREEN_RESOLUTION -noreset -listen tcp" /usr/bin/fluxbox -display "$DISPLAY" -log /dev/null 2>/dev/null & diff --git a/static/edge/Dockerfile b/static/edge/Dockerfile index 22df0ab13..25b8a81de 100644 --- a/static/edge/Dockerfile +++ b/static/edge/Dockerfile @@ -5,7 +5,10 @@ ENV DBUS_SESSION_BUS_ADDRESS=/dev/null COPY msedgedriver /usr/bin/ COPY entrypoint.sh / -RUN chmod +x /usr/bin/msedgedriver +RUN \ + chmod +x /usr/bin/msedgedriver && \ + echo "cookie-file = ~/.config/pulse/cookie" >> /etc/pulse/client.conf + USER selenium EXPOSE 4444 diff --git a/static/edge/entrypoint.sh b/static/edge/entrypoint.sh index e85edf8d9..9b50286d9 100755 --- a/static/edge/entrypoint.sh +++ b/static/edge/entrypoint.sh @@ -55,10 +55,10 @@ FILESERVER_PID=$! DISPLAY="$DISPLAY" /usr/bin/xseld & XSELD_PID=$! -mkdir -p ~/pulse/.config/pulse -echo -n 'gIvST5iz2S0J1+JlXC1lD3HWvg61vDTV1xbmiGxZnjB6E3psXsjWUVQS4SRrch6rygQgtpw7qmghDFTaekt8qWiCjGvB0LNzQbvhfs1SFYDMakmIXuoqYoWFqTJ+GOXYByxpgCMylMKwpOoANEDePUCj36nwGaJNTNSjL8WBv+Bf3rJXqWnJ/43a0hUhmBBt28Dhiz6Yqowa83Y4iDRNJbxih6rB1vRNDKqRr/J9XJV+dOlM0dI+K6Vf5Ag+2LGZ3rc5sPVqgHgKK0mcNcsn+yCmO+XLQHD1K+QgL8RITs7nNeF1ikYPVgEYnc0CGzHTMvFR7JLgwL2gTXulCdwPbg=='| base64 -d>~/pulse/.config/pulse/cookie -HOME=$HOME/pulse pulseaudio --start --exit-idle-time=-1 -HOME=$HOME/pulse pactl load-module module-native-protocol-tcp +mkdir -p ~/.config/pulse +echo -n 'gIvST5iz2S0J1+JlXC1lD3HWvg61vDTV1xbmiGxZnjB6E3psXsjWUVQS4SRrch6rygQgtpw7qmghDFTaekt8qWiCjGvB0LNzQbvhfs1SFYDMakmIXuoqYoWFqTJ+GOXYByxpgCMylMKwpOoANEDePUCj36nwGaJNTNSjL8WBv+Bf3rJXqWnJ/43a0hUhmBBt28Dhiz6Yqowa83Y4iDRNJbxih6rB1vRNDKqRr/J9XJV+dOlM0dI+K6Vf5Ag+2LGZ3rc5sPVqgHgKK0mcNcsn+yCmO+XLQHD1K+QgL8RITs7nNeF1ikYPVgEYnc0CGzHTMvFR7JLgwL2gTXulCdwPbg=='| base64 -d>~/.config/pulse/cookie +pulseaudio --start --exit-idle-time=-1 +pactl load-module module-native-protocol-tcp PULSE_PID=$(ps --no-headers -C pulseaudio -o pid | sed -r 's/( )+//g') /usr/bin/xvfb-run -l -n "$DISPLAY_NUM" -s "-ac -screen 0 $SCREEN_RESOLUTION -noreset -listen tcp" /usr/bin/fluxbox -display "$DISPLAY" -log /dev/null 2>/dev/null & diff --git a/static/firefox/selenoid/Dockerfile b/static/firefox/selenoid/Dockerfile index 852e3a93d..2689d8ff1 100644 --- a/static/firefox/selenoid/Dockerfile +++ b/static/firefox/selenoid/Dockerfile @@ -6,6 +6,8 @@ COPY selenoid /usr/bin/ COPY --chown=selenium:root browsers.json /home/selenium/ COPY entrypoint.sh / +RUN echo "cookie-file = ~/.config/pulse/cookie" >> /etc/pulse/client.conf + USER selenium EXPOSE 4444 diff --git a/static/firefox/selenoid/entrypoint.sh b/static/firefox/selenoid/entrypoint.sh index b3d765e4f..919de77cf 100755 --- a/static/firefox/selenoid/entrypoint.sh +++ b/static/firefox/selenoid/entrypoint.sh @@ -41,10 +41,10 @@ FILESERVER_PID=$! DISPLAY="$DISPLAY" /usr/bin/xseld & XSELD_PID=$! -mkdir -p ~/pulse/.config/pulse -echo -n 'gIvST5iz2S0J1+JlXC1lD3HWvg61vDTV1xbmiGxZnjB6E3psXsjWUVQS4SRrch6rygQgtpw7qmghDFTaekt8qWiCjGvB0LNzQbvhfs1SFYDMakmIXuoqYoWFqTJ+GOXYByxpgCMylMKwpOoANEDePUCj36nwGaJNTNSjL8WBv+Bf3rJXqWnJ/43a0hUhmBBt28Dhiz6Yqowa83Y4iDRNJbxih6rB1vRNDKqRr/J9XJV+dOlM0dI+K6Vf5Ag+2LGZ3rc5sPVqgHgKK0mcNcsn+yCmO+XLQHD1K+QgL8RITs7nNeF1ikYPVgEYnc0CGzHTMvFR7JLgwL2gTXulCdwPbg=='| base64 -d>~/pulse/.config/pulse/cookie -HOME=$HOME/pulse pulseaudio --start --exit-idle-time=-1 -HOME=$HOME/pulse pactl load-module module-native-protocol-tcp +mkdir -p ~/.config/pulse +echo -n 'gIvST5iz2S0J1+JlXC1lD3HWvg61vDTV1xbmiGxZnjB6E3psXsjWUVQS4SRrch6rygQgtpw7qmghDFTaekt8qWiCjGvB0LNzQbvhfs1SFYDMakmIXuoqYoWFqTJ+GOXYByxpgCMylMKwpOoANEDePUCj36nwGaJNTNSjL8WBv+Bf3rJXqWnJ/43a0hUhmBBt28Dhiz6Yqowa83Y4iDRNJbxih6rB1vRNDKqRr/J9XJV+dOlM0dI+K6Vf5Ag+2LGZ3rc5sPVqgHgKK0mcNcsn+yCmO+XLQHD1K+QgL8RITs7nNeF1ikYPVgEYnc0CGzHTMvFR7JLgwL2gTXulCdwPbg=='| base64 -d>~/.config/pulse/cookie +pulseaudio --start --exit-idle-time=-1 +pactl load-module module-native-protocol-tcp PULSE_PID=$(ps --no-headers -C pulseaudio -o pid | sed -r 's/( )+//g') /usr/bin/xvfb-run -l -n "$DISPLAY_NUM" -s "-ac -screen 0 $SCREEN_RESOLUTION -noreset -listen tcp" /usr/bin/fluxbox -display "$DISPLAY" -log /dev/null 2>/dev/null & diff --git a/static/opera/Dockerfile b/static/opera/Dockerfile index 4a3df439d..90bbd7b93 100644 --- a/static/opera/Dockerfile +++ b/static/opera/Dockerfile @@ -4,7 +4,10 @@ FROM selenoid/dev_opera:$VERSION COPY operadriver_linux64/operadriver /usr/bin/ COPY entrypoint.sh / -RUN chmod +x /usr/bin/operadriver +RUN \ + chmod +x /usr/bin/operadriver && \ + echo "cookie-file = ~/.config/pulse/cookie" >> /etc/pulse/client.conf + USER selenium EXPOSE 4444 diff --git a/static/opera/entrypoint.sh b/static/opera/entrypoint.sh index 082b067ab..7fc022e01 100755 --- a/static/opera/entrypoint.sh +++ b/static/opera/entrypoint.sh @@ -55,10 +55,10 @@ FILESERVER_PID=$! DISPLAY="$DISPLAY" /usr/bin/xseld & XSELD_PID=$! -mkdir -p ~/pulse/.config/pulse -echo -n 'gIvST5iz2S0J1+JlXC1lD3HWvg61vDTV1xbmiGxZnjB6E3psXsjWUVQS4SRrch6rygQgtpw7qmghDFTaekt8qWiCjGvB0LNzQbvhfs1SFYDMakmIXuoqYoWFqTJ+GOXYByxpgCMylMKwpOoANEDePUCj36nwGaJNTNSjL8WBv+Bf3rJXqWnJ/43a0hUhmBBt28Dhiz6Yqowa83Y4iDRNJbxih6rB1vRNDKqRr/J9XJV+dOlM0dI+K6Vf5Ag+2LGZ3rc5sPVqgHgKK0mcNcsn+yCmO+XLQHD1K+QgL8RITs7nNeF1ikYPVgEYnc0CGzHTMvFR7JLgwL2gTXulCdwPbg=='| base64 -d>~/pulse/.config/pulse/cookie -HOME=$HOME/pulse pulseaudio --start --exit-idle-time=-1 -HOME=$HOME/pulse pactl load-module module-native-protocol-tcp +mkdir -p ~/.config/pulse +echo -n 'gIvST5iz2S0J1+JlXC1lD3HWvg61vDTV1xbmiGxZnjB6E3psXsjWUVQS4SRrch6rygQgtpw7qmghDFTaekt8qWiCjGvB0LNzQbvhfs1SFYDMakmIXuoqYoWFqTJ+GOXYByxpgCMylMKwpOoANEDePUCj36nwGaJNTNSjL8WBv+Bf3rJXqWnJ/43a0hUhmBBt28Dhiz6Yqowa83Y4iDRNJbxih6rB1vRNDKqRr/J9XJV+dOlM0dI+K6Vf5Ag+2LGZ3rc5sPVqgHgKK0mcNcsn+yCmO+XLQHD1K+QgL8RITs7nNeF1ikYPVgEYnc0CGzHTMvFR7JLgwL2gTXulCdwPbg=='| base64 -d>~/.config/pulse/cookie +pulseaudio --start --exit-idle-time=-1 +pactl load-module module-native-protocol-tcp PULSE_PID=$(ps --no-headers -C pulseaudio -o pid | sed -r 's/( )+//g') /usr/bin/xvfb-run -l -n "$DISPLAY_NUM" -s "-ac -screen 0 $SCREEN_RESOLUTION -noreset -listen tcp" /usr/bin/fluxbox -display "$DISPLAY" -log /dev/null 2>/dev/null & diff --git a/static/yandex/Dockerfile b/static/yandex/Dockerfile index 11ddc6e41..700716a07 100644 --- a/static/yandex/Dockerfile +++ b/static/yandex/Dockerfile @@ -4,7 +4,10 @@ FROM selenoid/dev_yandex:$VERSION COPY yandexdriver /usr/bin/ COPY entrypoint.sh / -RUN chmod +x /usr/bin/yandexdriver +RUN \ + chmod +x /usr/bin/yandexdriver && \ + echo "cookie-file = ~/.config/pulse/cookie" >> /etc/pulse/client.conf + USER selenium EXPOSE 4444