Merge branch 'sh-headless-chrome' into 'master'

Bump Chrome version to 59.0.3071.104 and add ChromeDriver to image

See merge request !44
This commit is contained in:
Kamil Trzciński 2017-06-20 20:02:03 +00:00
commit 51a645fd67

View file

@ -2,7 +2,7 @@
set -xeo pipefail
CHROME_VERSION=${1:-59.0.3071.86-1}
CHROME_VERSION=${1:-59.0.3071.104-1}
curl -sS -L https://dl.google.com/linux/linux_signing_key.pub | apt-key add -
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
@ -10,3 +10,8 @@ echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /et
apt-get update -q
env DEBIAN_FRONTEND="noninteractive" apt-get install -y google-chrome-stable=$CHROME_VERSION
rm -rf /var/lib/apt/lists/*
# Install ChromeDriver
wget -q https://chromedriver.storage.googleapis.com/2.30/chromedriver_linux64.zip
unzip chromedriver_linux64.zip -d /usr/local/bin
rm -f chromedriver_linux64.zip