Skip to content

Commit

Permalink
fix: Fix ChromeHeadless in Docker (shaka-project#51)
Browse files Browse the repository at this point in the history
Currently ChromeHeadless cannot be run in the Docker environment due to
lack of `--no-sandbox` argument. Trying to run ChromeHeadless within
Docker ends with `DevToolsActivePort file doesn't exist` error. You can
find more info here:
https://bugs.chromium.org/p/chromedriver/issues/detail?id=2473

Of course this can be omitted by creating custom launcher, but I
believe this can be so common issue it's better to tackle it by default.
Additionally I'm planning to add running tests within Docker to shaka,
so it'll easify process.
  • Loading branch information
tykus160 authored Jul 19, 2023
1 parent 43ce270 commit a487e6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ const LocalWebDriverChromeHeadless = generateSubclass(
'goog:chromeOptions': {
args: [
'--headless',
'--no-sandbox',
'--disable-gpu',
'--disable-dev-shm-usage',
],
Expand Down

0 comments on commit a487e6d

Please sign in to comment.