Skip to content

Commit

Permalink
Merge pull request WrenSecurity#158 from kovaceviccz/main
Browse files Browse the repository at this point in the history
Use new Headless mode in Puppeteer
  • Loading branch information
pavelhoral authored Oct 5, 2023
2 parents e7eb92a + ac359d2 commit d0be05c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM debian:bullseye-slim AS project-build
# Install build dependencies
RUN \
apt-get update && \
apt-get install -y --no-install-recommends openjdk-17-jdk maven unzip chromium && \
apt-get install -y --no-install-recommends openjdk-17-jdk maven unzip chromium vainfo && \
# Workaround Chromium binary path for arm64 (see https://github.com/puppeteer/puppeteer/blob/v4.0.0/src/Launcher.ts#L110)
ln -s /usr/bin/chromium /usr/bin/chromium-browser

Expand Down
2 changes: 1 addition & 1 deletion openidm-ui/Gruntfile-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ module.exports = function(grunt, options) {
ignoreDefaultArgs: true,
args: [
process.env.DISABLE_PUPPETEER_SANDBOX ? "--no-sandbox" : "",
"--headless",
"--headless=new",
"--allow-file-access-from-files",
"--disable-dev-shm-usage"
]
Expand Down

0 comments on commit d0be05c

Please sign in to comment.