heroku / heroku-buildpack-google-chrome

[DEPRECATED] Classic buildpack that installs Google Chrome.
296 stars 365 forks source link

Add ability to install a specific version of Chrome #118

Closed bmelo closed 6 months ago

bmelo commented 3 years ago

I'm creating this PR because I was needing this functionality in a project. I'm using Selenium with chromedriver and the application constantly was having problems after a chrome update in the stable channel. This PR adds the ability to define a chrome version by specifying the GOOGLE_CHROME_VERSION env var.

The version must be chosen from the list of versions on this site: https://www.ubuntuupdates.org/package/google_chrome/stable/main/base/google-chrome-stable

GabrielLyonB commented 3 years ago

I'm creating this PR because I was needing this functionality in a project. I'm using Selenium with chromedriver and the application constantly was having problems after a chrome update in the stable channel. This PR adds the ability to define a chrome version by specifying the GOOGLE_CHROME_VERSION env var.

The version must be chosen from the list of versions on this site: https://www.ubuntuupdates.org/package/google_chrome/stable/main/base/google-chrome-stable

I have the same problem.

nachoal commented 2 years ago

Same problem, thanks for the solution, will check it out on a fork

dancherb commented 1 year ago

Is there any update on this?

I tried to add the fork as a buildpack, and had to downgrade my Heroku stack for this as heroku-22 wasn't supported. However, I then came across new errors:

/app/.apt/opt/google/chrome/chrome: error while loading shared libraries: libffi.so.8: cannot open shared object file: No such file or directory

So it does seem this branch is out of date now. It would be great if we could get it working as Chrome updating under the hood is breaking parts of my application intermittently. Thanks @bmelo :)

edmorley commented 6 months ago

Hi! Sorry for the delayed reply. This buildpack has been deprecated in favour of the newer (and hopefully more robust) Chrome for Testing buildpack: https://blog.heroku.com/improved-browser-testing-on-heroku-with-chrome https://github.com/heroku/heroku-buildpack-chrome-for-testing

As such, I'm closing this out.