Git Product home page Git Product logo

Comments (7)

DanCech avatar DanCech commented on August 14, 2024 1

Looks like alpine now has 79.0.3945.88-r0 in 3.11 and in edge

from grafana-image-renderer.

marefr avatar marefr commented on August 14, 2024

Or https://github.com/thomasdondorf/puppeteer-cluster

from grafana-image-renderer.

DanCech avatar DanCech commented on August 14, 2024

Nice find! That looks like it would do pretty much exactly what we need, and the CONCURRENCY_CONTEXT option should allow us to process multiple requests in a single chromium instance.

from grafana-image-renderer.

marefr avatar marefr commented on August 14, 2024

@DanCech Looking at puppeteer/puppeteer#4949 introducing emulateTimezone it mentions that "Blocked on a Chromium roll to v79.0.3923.0 (r699550) or later, though." which is a quite recent version so could be hard to support this maybe. In addition, we need to upgrade puppeteer to v2.0.0, not sure if that would cause any problems. But will look into this and try it out.

from grafana-image-renderer.

DanCech avatar DanCech commented on August 14, 2024

It looks like we could let puppeteer install chromium itself rather than pre-installing from the alpine edge package, which in theory at least should be more reliable since it's going to download the same version the release was tested against. If we go that route and update to 2.0.0 then the per-page timezone should hopefully Just Work.

from grafana-image-renderer.

marefr avatar marefr commented on August 14, 2024

@DanCech problem though is that the puppeteer cannot automatically download chromium for alpine, at least that didn't work before. But one alternative would be to add an ubuntu image as well and/or build a custom one.

from grafana-image-renderer.

DanCech avatar DanCech commented on August 14, 2024

Aha, that is a problem then, since the alpine packaged version in edge right now is 78.0.3904.108-r0 https://pkgs.alpinelinux.org/package/edge/community/x86_64/chromium which seems to be the current stable release as that's the version in the ubuntu etc repos also.

from grafana-image-renderer.

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.