cypress
From https://github.com/dtinth/cypress-docker-novnc, thank you.
install
docker compose up -d
todo
- run as non-root user (https://crbug.com/638180, cypress-io/cypress#5434, electron/electron#17972)
usage
Access desktop env using
cypress-with-mongo
If you need mongo
inside the cypress image
Create docker-compose.override.yml
# docker-compose.override.yml
services:
cypress:
build:
context: .
target: cypress-with-mongo
command: bash -c 'npx wait-on http://novnc:8080 && mongod --fork --logpath /var/log/mongodb/mongodb.log && cypress open --project /srv/www/e2e'
docker compose up -d
# check mongodb logs
docker compose exec cypress sh
tail -f /var/log/mongodb.log