Skip to content

Commit

Permalink
docs(troubleshooting.md): update Alpine instructions (puppeteer#4494)
Browse files Browse the repository at this point in the history
Update Alpine to Chromium 73 and Puppeteer 1.12.2

According to the compatibility pages these are the
most recent, compatible versions.
  • Loading branch information
r4j4h authored and aslushnikov committed May 29, 2019
1 parent 084cf02 commit 111350c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ how to run this Dockerfile from a webserver running on App Engine Flex (Node).

### Running on Alpine

The [newest Chromium package](https://pkgs.alpinelinux.org/package/edge/community/x86_64/chromium) supported on Alpine is 72, which was corresponding to [Puppeteer v1.11.0](https://github.com/GoogleChrome/puppeteer/releases/tag/v1.11.0).
The [newest Chromium package](https://pkgs.alpinelinux.org/package/edge/community/x86_64/chromium) supported on Alpine is 73, which was corresponding to [Puppeteer v1.12.2](https://github.com/GoogleChrome/puppeteer/releases/tag/v1.12.2).

Example Dockerfile:

Expand All @@ -296,7 +296,7 @@ RUN apk update && apk upgrade && \
echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories && \
echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories && \
apk add --no-cache \
chromium@edge=72.0.3626.121-r0 \
chromium@edge=~73.0.3683.103 \
nss@edge \
freetype@edge \
harfbuzz@edge \
Expand All @@ -307,8 +307,8 @@ RUN apk update && apk upgrade && \
# Tell Puppeteer to skip installing Chrome. We'll be using the installed package.
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true

# Puppeteer v1.11.0 works with Chromium 72.
RUN yarn add puppeteer@1.11.0
# Puppeteer v1.12.2 works with Chromium 73.
RUN yarn add puppeteer@1.12.2

# Add user so we don't need --no-sandbox.
RUN addgroup -S pptruser && adduser -S -g pptruser pptruser \
Expand Down

0 comments on commit 111350c

Please sign in to comment.