From 82bef7021263c17716bfcda5ff02a3c2f097cac0 Mon Sep 17 00:00:00 2001 From: Sergii Tkachenko Date: Wed, 9 Jan 2019 20:23:49 -0500 Subject: [PATCH] docs(troubleshooting.md): Update running on Alpine example (#3708) Makes Running on Alpine up to date: - Chrome is now available in LTS Node 10 - Chrome version is updated to the latest alpine `@edge`, 71 - Corresponding Puppeteer is updated to v1.9.0 - `harfbuzz` is now required by dynamic linking --- docs/troubleshooting.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 075ce3692ee..a44f9108a25 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -248,19 +248,20 @@ 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 68, which was corresponding to [Puppeteer v1.4.0](https://github.com/GoogleChrome/puppeteer/releases/tag/v1.4.0). +The [newest Chromium package](https://pkgs.alpinelinux.org/package/edge/community/x86_64/chromium) supported on Alpine is 71, which was corresponding to [Puppeteer v1.9.0](https://github.com/GoogleChrome/puppeteer/releases/tag/v1.9.0). Example Dockerfile: ```Dockerfile -FROM node:9-alpine +FROM node:10-alpine -# Installs latest Chromium (68) package. +# Installs latest Chromium (71) package. 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 \ + harfbuzz@edge \ nss@edge ... @@ -268,8 +269,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.4.0 works with Chromium 68. -RUN yarn add puppeteer@1.4.0 +# Puppeteer v1.9.0 works with Chromium 71. +RUN yarn add puppeteer@1.9.0 # Add user so we don't need --no-sandbox. RUN addgroup -S pptruser && adduser -S -g pptruser pptruser \