Attempt to fix stuck puppeteer

This commit is contained in:
lowlighter
2021-03-04 03:35:37 +01:00
parent d9d7bfdf9c
commit e52cefeb5c
6 changed files with 8 additions and 8 deletions

View File

@@ -94,7 +94,7 @@ runs:
fi
# Run docker image with current environment
docker run --volume $GITHUB_EVENT_PATH:$GITHUB_EVENT_PATH --env-file .env $METRICS_IMAGE
docker run --init --volume $GITHUB_EVENT_PATH:$GITHUB_EVENT_PATH --env-file .env $METRICS_IMAGE
rm .env
shell: bash
env:

View File

@@ -147,7 +147,7 @@
async resize(rendered, {paddings, convert}) {
//Instantiate browser if needed
if (!svg.resize.browser) {
svg.resize.browser = await puppeteer.launch({headless:true, executablePath:process.env.PUPPETEER_BROWSER_PATH, args:["--no-sandbox", "--disable-extensions", "--disable-setuid-sandbox", "--disable-dev-shm-usage"]})
svg.resize.browser = await puppeteer.launch({headless:true, executablePath:process.env.PUPPETEER_BROWSER_PATH, args:["--no-sandbox", "--disable-extensions", "--disable-setuid-sandbox", "--disable-dev-shm-usage"], ignoreDefaultArgs: ["--disable-extensions"]})
console.debug(`metrics/svg/resize > started ${await svg.resize.browser.version()}`)
}
//Format padding