Heroku Buildpack Google Chrome Save

Run (headless) Google Chrome on Heroku

Project README

heroku-buildpack-google-chrome

This buildpack downloads and installs (headless) Google Chrome from your choice of release channels.

[!IMPORTANT] When used with Chromedriver, the Chromedriver version (installed by a different buildpack) falls out of sync with Chrome causing build failures.

Instead, please use Chrome for Testing buildpack, which installs matching Chrome + Chromedriver versions.

Channels

You can choose your release channel by specifying GOOGLE_CHROME_CHANNEL as a config var for your app, in your app.json (for Heroku CI and Review Apps), or in your pipeline settings (for Heroku CI).

Valid values are stable, beta, and unstable. If unspecified, the stable channel will be used.

Shims and Command Line Flags

This buildpack installs shims that always add --headless, --disable-gpu, --no-sandbox, and --remote-debugging-port=9222 to any google-chrome command as you'll have trouble running Chrome on a Heroku dyno otherwise.

You'll have two of these shims on your path: google-chrome and google-chrome-$GOOGLE_CHROME_CHANNEL. They both point to the binary of the selected channel.

Selenium

[!CAUTION] To use Selenium, do not install this buildpack.

Instead, please use Chrome for Testing buildpack, which installs matching Chrome + Chromedriver versions.

Releasing a new version

Make sure you publish this buildpack in the buildpack registry

heroku buildpacks:publish heroku/google-chrome master

Open Source Agenda is not affiliated with "Heroku Buildpack Google Chrome" Project. README Source: heroku/heroku-buildpack-google-chrome
Stars
299
Open Issues
55
Last Commit
1 month ago

Open Source Agenda Badge

Open Source Agenda Rating