mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
add headless chrome option to build images
This commit is contained in:
parent
0effba54c6
commit
d91997de08
3 changed files with 29 additions and 0 deletions
12
scripts/install-chrome
Executable file
12
scripts/install-chrome
Executable 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/*
|
||||
Loading…
Add table
Add a link
Reference in a new issue