Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Commit

Permalink
Updating README
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Walter committed Jul 10, 2020
1 parent 9512701 commit e4af37c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,5 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

# When installing Puppeteer through npm, instruct it to not download Chromium.
# Puppeteer will need to be launched with:
# browser.launch({ executablePath: 'google-chrome-stable' })
# This is done by default in @ianwalter/bff.
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
ENV PUPPETEER_EXECUTABLE_PATH google-chrome-stable
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ Forked from [buildkite/puppeteer][buildkiteUrl] and based on
Puppeteer will need to be launched with:

```js
browser.launch({ executablePath: 'google-chrome-stable', args: ["--no-sandbox"]})
browser.launch({ args: ['--no-sandbox'] })
```

You may also have to configure `executablePath` to `'google-chrome-stable'` if
the `PUPPETEER_EXECUTABLE_PATH` environment variable is not correct for some
reason.

This is done by default in [@ianwalter/bff-puppeteer][bffPuppeteerUrl].

As a [GitHub Action][actionsUrl]:
Expand Down
3 changes: 0 additions & 3 deletions current.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,5 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

# When installing Puppeteer through npm, instruct it to not download Chromium.
# Puppeteer will need to be launched with:
# browser.launch({ executablePath: 'google-chrome-stable' })
# This is done by default in @ianwalter/bff.
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
ENV PUPPETEER_EXECUTABLE_PATH google-chrome-stable

0 comments on commit e4af37c

Please sign in to comment.