Skip to content

minidocks/puppeteer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Puppeteer docker image (minidocks/puppeteer)

Puppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer runs headless by default, but can be configured to run full (non-headless) Chrome or Chromium.

Improvements

  • Resolves ip address --remote-debugging-address browser option.
  • Supports configuration via environment variables with prefix PUPPETEER_ARG_.

Usage

Puppeteer requires link to a container with chromium browser. So create a file docker-compose.yml with content:

version: '3.4'
services:
  puppeteer:
    image: minidocks/puppeteer
    volumes:
    - .:/app
    links:
    - chromium
    environment:
      PUPPETEER_EXECUTABLE_PATH: /bin/chromium
      PUPPETEER_ARG_REMOTE_DEBUGGING_ADDRESS: chromium
      PUPPETEER_ARG_REMOTE_DEBUGGING_PORT: 0
      ALIAS_CHROMIUM: ssh chromium chromium
    working_dir: /app

  chromium:
    image: minidocks/chromium
    volumes:
    - .:/app
    cap_add:
    - SYS_ADMIN
    working_dir: /app
    command: sshd

And in the same directory run command:

docker-compose run --rm puppeteer print https://example.com example.pdf

Tags

Tag Size
latest
1.12

Related images

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published