This buildpack downloads and installs (headless) Google Chrome from your choice of release channels.
You can choose your release channel by specifying
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
unstable. If unspecified, the
channel will be used.
This buildpack installs shims that always add
--remote-debugging-port=9222 to any
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-$GOOGLE_CHROME_CHANNEL. They both point to the binary of
the selected channel.
To use Selenium with this buildpack, you'll also need Chrome's webdriver. This buildpack does not install chromedriver, but there is a chromedriver buildpack also available.
Additionally, chromedriver expects Chrome to be installed at
but that's a read-only filesystem in a Heroku slug. You'll need to tell Selenium/chromedriver
that the chrome binary is at
To make that easier, this buildpack makes
$GOOGLE_CHROME_SHIM available as environment variables. With them, you can
use the standard location locally and the custom location on Heroku. An example
configuration for Ruby's Capybara:
Make sure you publish this buildpack in the buildpack registry
heroku buildpacks:publish heroku/google-chrome master
Copy the snippet above into CLI.