From a487e6de37ebeac009e17619a5e48aa2e439e9d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Tyczy=C5=84ski?= Date: Wed, 19 Jul 2023 20:08:20 +0200 Subject: [PATCH] fix: Fix ChromeHeadless in Docker (#51) 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. --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 8a1b3d7..246a81e 100644 --- a/index.js +++ b/index.js @@ -279,6 +279,7 @@ const LocalWebDriverChromeHeadless = generateSubclass( 'goog:chromeOptions': { args: [ '--headless', + '--no-sandbox', '--disable-gpu', '--disable-dev-shm-usage', ],