Skip to content

noesya/scalingo-buildpack-google-chrome

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scalingo-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.

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, --remote-debugging-port=9222 and --disable-dev-shm-usage to any google-chrome command as you'll have trouble running Chrome on a Scalingo 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.

Special thanks

Thanks to Heroku for providing the source of this fork.

About

Run (headless) Google Chrome on Scalingo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 90.1%
  • Dockerfile 9.9%