Last active
May 23, 2018 14:31
-
-
Save odlp/47ce3188f672ea33af695d15f707f9b5 to your computer and use it in GitHub Desktop.
Update Chrome on CI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Exit if any subcommand fails | |
set -e | |
# Install latest stable version of Chrome | |
curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome.deb | |
sudo sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome | |
rm google-chrome.deb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies: | |
pre: | |
- bin/ci_update_chrome |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you find yourself wanting to do this, please try using a newer docker image from Circle:
On images with older versions of Ruby, Chrome seems to break a lot. It's stable now on the latest version of the image.