docker: xvfb needs flag for OpenGL which is needed to solve eg captcha..., #183

This commit is contained in:
Ralf Vogler 2025-05-27 01:20:29 +02:00
parent b959bf5330
commit 9988f39658

View file

@ -27,8 +27,8 @@ rm -f /tmp/.X1-lock
# -nolisten unix tells the server not to use Unix domain sockets, thus avoiding the need to create /tmp/.X11-unix # -nolisten unix tells the server not to use Unix domain sockets, thus avoiding the need to create /tmp/.X11-unix
export DISPLAY=:1 # need to export this, otherwise playwright complains with 'Looks like you launched a headed browser without having a XServer running.' export DISPLAY=:1 # need to export this, otherwise playwright complains with 'Looks like you launched a headed browser without having a XServer running.'
Xvfb $DISPLAY -ac -screen 0 "${WIDTH}x${HEIGHT}x${DEPTH}" & Xvfb $DISPLAY -ac -screen 0 "${WIDTH}x${HEIGHT}x${DEPTH}" -nolisten unix +extension GLX +extension RENDER &
echo "Xvfb display server created screen with resolution ${WIDTH}x${HEIGHT} -nolisten unix" echo "Xvfb display server created screen with resolution ${WIDTH}x${HEIGHT}"
if [ -z "$VNC_PASSWORD" ]; then if [ -z "$VNC_PASSWORD" ]; then
pw="-nopw" pw="-nopw"
pwt="no password!" pwt="no password!"