
To begin with, we’ll have to install one of Puppeteer’s packages. Check it out during the article or afterwards.

It lets us run Puppeteer scripts every couple of minutes or trigger them from the continuous integration pipeline. # Run everything after as non-privileged user.ĮNV PUPPETEER_EXECUTABLE_PATH "/usr/bin/google-chrome-unstable"ĬOPY bin/Release/netcoreapp2.In this article we’re going to try out Puppeteer and demonstrate a variety of the available capabilities, through concrete examples.ĭisclaimer: This article doesn’t claim to replace the official documentation but rather elaborate it - you definitely should go over it in order to be aligned with the most updated API specification.Īctive Reliability for Modern DevOps TeamsĬheckly does in-depth API monitoring and synthetic monitoring using Puppeteer. & chown -R pptruser:pptruser /home/pptruser RUN groupadd -r pptruser & useradd -r -g pptruser -G audio,video pptruser \ # same layer as npm install to keep re-chowned files from using up several hundred MBs more space # Add user, so we don't need -no-sandbox. & apt-get install -y /tmp/b -no-install-recommends -allow-downgrades fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf \

# Uncomment to skip the chromium download when installing puppeteer. # uncomment the following lines to have `dumb-init` as PID 1 # If running Docker >= 1.13.0 use docker run's -init arg to reap zombie processes, otherwise & apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf \

& sh -c 'echo "deb stable main" > /etc/apt//google.list' \ # Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer # Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
