ddev-tightvnc
is a DDEV add-on that provides VNC (Virtual Network Computing) capabilities for DDEV projects via tightvncserver. This allows developers to access a graphical desktop environment within their DDEV containers. The primary motivation for this add-on is to enable developers to visually monitor browsers, such as Chrome, being controlled by automation tools like Puppeteer. However, it is versatile enough to be used for any purpose requiring a graphical interface within a DDEV container.
ddev get
To install ddev-tightvnc
, use the following commands:
ddev get thursdaybw/ddev-tightvnc
ddev restart
localhost:5901
; For example vncviewer localhost:5901
localhost:5901
; For example vncviewer localhost:5901
mkdir -p "~/.vnc"
echo "password" | vncpasswd -f > "${VNC_DIR}/passwd
vncviewer -passwd "~/.vnc/passwd" localhost:5901
To visually monitor Puppeteer controlling Chrome, follow these steps:
To run tests locally, use:
bats ./tests/test.bats
Tests are automatically run on push and pull request events.
If you encounter any issues, check the logs for the VNC server and your DDEV project. Logs can be found in the following locations:
/var/log/supervisor/start-vnc.log
and /var/log/supervisor/start-vnc_err.log
This project is licensed under the MIT License - see the LICENSE file for details.