fix(docker): use config to set up walpaper (#17399)

This commit is contained in:
Pavel Feldman 2022-09-16 09:27:59 -07:00 committed by GitHub
parent e29f70bba6
commit a6d9aa8708
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,6 +35,11 @@ cat <<'EOF' | node > /root/.fluxbox/menu
`);
EOF
cat <<'EOF' > /root/.fluxbox/lastwallpaper
$center $full|/ms-playwright-agent/node_modules/playwright-core/lib/server/chromium/appIcon.png||:99
$center $full|/ms-playwright-agent/node_modules/playwright-core/lib/server/chromium/appIcon.png||:99.0
EOF
# Create entrypoint.sh
cat <<'EOF' > /entrypoint.sh
#!/bin/bash
@ -63,8 +68,6 @@ nohup /opt/bin/noVNC/utils/novnc_proxy --listen 7900 --vnc localhost:5900 >/dev/
cd /ms-playwright-agent
fbsetbg -c /ms-playwright-agent/node_modules/playwright-core/lib/server/chromium/appIcon.png
NOVNC_UUID=$(cat /proc/sys/kernel/random/uuid)
echo "novnc is listening on http://127.0.0.1:7900?path=$NOVNC_UUID&resize=scale&autoconnect=1"