GoogleChromeLabs / pptraas.com

Puppeteer as a service
https://pptraas.com
Apache License 2.0
457 stars 78 forks source link

Error: Chromium revision is not downloaded in Docker image #31

Closed CaptainCodeman closed 5 years ago

CaptainCodeman commented 6 years ago

Trying to switch from rendertron but it's failing when trying to execute with message that Chromeium isn't installed:

> pptraas@0.0.2 start /app
> node server.js

App is listening on port 8080
(node:19) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1):
AssertionError [ERR_ASSERTION]: Chromium revision is not downloaded. Run "npm install" or "yarn install"

Steps used:

  1. Cloned repo

    git clone https://github.com/GoogleChromeLabs/pptraas.com.git
    cd pptraas.com
    npm install
  2. Built docker image

docker build -t pptraas . --no-cache=true
  1. Run docker
docker run -it -p 8080:8080 pptraas

Version details:

$ node --version && npm --version && docker --version
v10.1.0
6.0.0
Docker version 18.05.0-ce-rc1, build 33f00ce