add headless chrome option to build images

This commit is contained in:
Mike Greiling 2017-06-09 17:43:41 -05:00
parent 0effba54c6
commit d91997de08
3 changed files with 29 additions and 0 deletions

12
scripts/install-chrome Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
set -xeo pipefail
CHROME_VERSION=${1:-59.0.3071.86-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
apt-get update -q
env DEBIAN_FRONTEND="noninteractive" apt-get install -y google-chrome-stable=$CHROME_VERSION
rm -rf /var/lib/apt/lists/*