Giter VIP home page Giter VIP logo

Comments (7)

cristinadresch avatar cristinadresch commented on June 20, 2024

@jkfran do you have any thoughts about this issue?

from dotrun.

jkfran avatar jkfran commented on June 20, 2024

Hi @mtruj013

Can you try:

export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
dotrun

Or to include this line:

PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true

In your .env.local?

from dotrun.

nottrobin avatar nottrobin commented on June 20, 2024

@jkfran that seems to have worked - do you think we should actually put this in .env so it automatically works? Or would that be harmful for people who could successfully download chromium? Do we need chromium downloads for some reason?

from dotrun.

jkfran avatar jkfran commented on June 20, 2024

I assumed this chromium dependency wasn't needed at all for regular working on the ubuntu.com project. That would be very weird haha. But I am not familiar enough with Puppeteer to know. I thought the chromium dependency is probably related to some Cypress testing.

As far as I know, we run cypress on CI here: https://github.com/canonical-web-and-design/ubuntu.com/blob/main/.github/workflows/cypress-pr.yaml

But if there are people running it locally we might cause and issue to them by including this line in the .env

from dotrun.

bartaz avatar bartaz commented on June 20, 2024

Getting the same error now with dotrun 2 on M1 Mac, when trying to install dependencies of ubuntu.com:

image

from dotrun.

jkfran avatar jkfran commented on June 20, 2024

So the issue here seems to be that Puppeteer can't download chrome for ARM64. The best solution is to provide chromium in the dotrun-image for both architectures. However, the official package is a snap, and snaps don't work on Docker.

There are many references on the internet to a third-party PPA repo: add-apt-repository ppa:saiarcot895/chromium-beta to avoid the snap package. Maybe we should install it from here.

from dotrun.

nottrobin avatar nottrobin commented on June 20, 2024

Sure sounds good

from dotrun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.