mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
17 lines
587 B
Bash
Executable file
17 lines
587 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -xeo pipefail
|
|
|
|
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
|
|
|
|
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
|