cypress-io / cypress-docker-images

Docker images with Cypress dependencies and browsers
https://on.cypress.io/continuous-integration
MIT License
1.02k stars 380 forks source link

docs: fix restrict cpu example #1092

Closed MikeMcC399 closed 4 months ago

MikeMcC399 commented 4 months ago

Issue

The example included > Restrict CPU

docker run -it -v .:/e2e -w /e2e --cpus=0.02 -e DEBUG=cypress:launcher --entrypoint=cypress cypress/included:13.10.0 info

takes a long time to run, produces no debug output and unnecessarily uses bind mount.

Change

In the example included > Restrict CPU

  1. Remove the bind mount -v .:/e2e -w /e2e
  2. Increase CPUs available by factor of 10 to --cpus=0.2
  3. Set the DEBUG environment variable to DEBUG=cypress:launcher:*

to use:

docker run -it --cpus=0.2 -e DEBUG=cypress:launcher:* --entrypoint=cypress cypress/included:13.10.0 info

Verification

On Ubuntu 24.04.4 LTS

cypress-app-bot commented 4 months ago