ackama / lighthouse-matchers

Provides RSpec matchers for executing and evaluating Google Chrome Lighthouse audit scores
MIT License
15 stars 1 forks source link

Doesn't work inside a Docker container #8

Closed joshmcarthur closed 5 years ago

joshmcarthur commented 5 years ago

Chrome generally requires flags to run inside a Docker container:

  1. --headless (to run headlessly)
  2. --no-sandbox
  3. sometimes, but not always --disable-gpu

Lighthouse launches it's own instance of Chrome other than the Chrome instance that webdrivers will load. Because of this, any flags that have been configured in the RSpec run to get Chrome to launch within a container will not be inherited by Lighthouse.

Lighthouse allows Chrome args to be passed with the --chrome-flags option. We should either:

joshmcarthur commented 5 years ago

Resolved by 61458debef3f5f5c1f4de1d0f4ed45d2d71f0d7d