percy / percy-script

[Deprecated] PercyScript is the easiest way to get started with visual testing and Percy.
https://percy.io
MIT License
2 stars 2 forks source link

Cannot install and run @percy/script using Docker Compose, Debian container, M1 MacBook Air #21

Closed urlsangel closed 2 years ago

urlsangel commented 3 years ago

Trying to install Percy Script on a Debian container using Docker Compose on an M1 Arm-based MacBook Air results in the following error:

#17 14.26 npm ERR! code 1
#17 14.26 npm ERR! path /app/node_modules/@percy/agent/node_modules/puppeteer
#17 14.26 npm ERR! command failed
#17 14.26 npm ERR! command sh -c node install.js
#17 14.26 npm ERR! The chromium binary is not available for arm64:
#17 14.26 npm ERR! If you are on Ubuntu, you can install with:
#17 14.26 npm ERR!
#17 14.26 npm ERR!  apt-get install chromium-browser
#17 14.26 npm ERR!
#17 14.26 npm ERR! /app/node_modules/@percy/agent/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:112
#17 14.26 npm ERR!             throw new Error();
#17 14.26 npm ERR!             ^
#17 14.26 npm ERR!
#17 14.26 npm ERR! Error
#17 14.26 npm ERR!     at /app/node_modules/@percy/agent/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:112:19
#17 14.26 npm ERR!     at FSReqCallback.oncomplete (node:fs:196:21)

Dockerfile:

FROM python:3.6.6-stretch

RUN apt-get update -y
RUN apt-get install -y postgresql-client
RUN curl -fsSL https://deb.nodesource.com/setup_15.x | bash -
RUN apt-get install -y nodejs
RUN npm install -g heroku

RUN pip install --upgrade pip
RUN pip install awscli fabric

WORKDIR /app
RUN npm install -D @percy/script
COPY . .
Robdel12 commented 3 years ago

Hey @urlsangel, thanks for the issue! Nothing we can do here -- PercyScript is a thin wrapper around Puppeteer. Once this is resolved upstream, it'll be fixed here.

https://github.com/puppeteer/puppeteer/issues/6622

urlsangel commented 3 years ago

Thanks @Robdel12 ! 😀