Fix noVNC startup and pin Playwright version for container compatibility

This commit is contained in:
Stefan Heyn 2026-03-04 16:27:54 +01:00
parent 2bfbfcc0f3
commit 513a28539d
3 changed files with 6 additions and 5 deletions

View file

@ -60,7 +60,8 @@ Die Session liegt anschließend in `./state/storage_state.json`.
Session auf Ubuntu Server ohne GUI (noVNC): Session auf Ubuntu Server ohne GUI (noVNC):
```bash ```bash
docker compose --profile configure-novnc up --build amazon-invoice-configure-novnc docker compose --profile configure-novnc build --no-cache amazon-invoice-configure-novnc
docker compose --profile configure-novnc up amazon-invoice-configure-novnc
``` ```
Dann im Browser auf deinem PC oeffnen: Dann im Browser auf deinem PC oeffnen:

View file

@ -1,2 +1,2 @@
playwright>=1.52.0 playwright==1.52.0
dateparser>=1.2.0 dateparser>=1.2.0

View file

@ -8,12 +8,12 @@ MARKETPLACE=${MARKETPLACE:-de}
DOWNLOAD_DIR=${DOWNLOAD_DIR:-/downloads} DOWNLOAD_DIR=${DOWNLOAD_DIR:-/downloads}
LOGIN_WAIT_SECONDS=${LOGIN_WAIT_SECONDS:-300} LOGIN_WAIT_SECONDS=${LOGIN_WAIT_SECONDS:-300}
export DISPLAY="$DISPLAY_NUM"
Xvfb "$DISPLAY_NUM" -screen 0 1920x1080x24 & Xvfb "$DISPLAY_NUM" -screen 0 1920x1080x24 &
fluxbox -display "$DISPLAY_NUM" & fluxbox -display "$DISPLAY_NUM" &
x11vnc -display "$DISPLAY_NUM" -forever -shared -rfbport "$VNC_PORT" -nopw & x11vnc -display "$DISPLAY_NUM" -forever -shared -rfbport "$VNC_PORT" -nopw &
/usr/share/novnc/utils/novnc_proxy --vnc localhost:"$VNC_PORT" --listen "$NOVNC_PORT" & websockify --web=/usr/share/novnc/ "$NOVNC_PORT" "localhost:$VNC_PORT" &
export DISPLAY="$DISPLAY_NUM"
echo "noVNC bereit unter: http://<SERVER-IP>:$NOVNC_PORT/vnc.html" echo "noVNC bereit unter: http://<SERVER-IP>:$NOVNC_PORT/vnc.html"
echo "Melde dich bei Amazon an. Session wird nach $LOGIN_WAIT_SECONDS Sekunden gespeichert." echo "Melde dich bei Amazon an. Session wird nach $LOGIN_WAIT_SECONDS Sekunden gespeichert."