mvp: wonky but working selenium firefox version
This commit is contained in:
parent
061eefdb24
commit
a3c843d63c
20 changed files with 738 additions and 407 deletions
|
|
@ -1,15 +1,21 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
export DISPLAY=:99
|
||||
|
||||
Xvfb :99 -screen 0 1280x1024x24 -nolisten tcp -ac >/tmp/xvfb.log 2>&1 &
|
||||
XVFB_PID=$!
|
||||
XVFB_PID=""
|
||||
|
||||
cleanup() {
|
||||
kill "$XVFB_PID" >/dev/null 2>&1 || true
|
||||
if [ -n "$XVFB_PID" ]; then
|
||||
kill "$XVFB_PID" >/dev/null 2>&1 || true
|
||||
fi
|
||||
}
|
||||
|
||||
trap cleanup EXIT INT TERM
|
||||
|
||||
if [ -z "$DISPLAY" ]; then
|
||||
export DISPLAY=:0
|
||||
export LIBGL_ALWAYS_SOFTWARE=1
|
||||
Xvfb :0 -screen 0 1920x1080x24+32 -nolisten tcp -ac -dpi 96 >/tmp/xvfb.log 2>&1 &
|
||||
XVFB_PID=$!
|
||||
fi
|
||||
|
||||
exec /app/.venv/bin/python -u server.py
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue