diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2017-09-22 12:47:44 -0700 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2017-09-22 12:47:44 -0700 |
commit | 886ba64f16075c3bcc071a78dacd6a56ae9e6822 (patch) | |
tree | 5f1da620962bed2a2a6e29bfd19027608929e4b8 /packer/provision | |
parent | dd77eab8c12e1cab35521bc156744e0cd8532415 (diff) |
Install chrome to support ChromeDriver in CSIT
Change-Id: Ib3ff4663c07d8eb90c9cb3f06660fbad93fa0b57
Issue-ID: INT-212
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'packer/provision')
-rw-r--r-- | packer/provision/basebuild.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/packer/provision/basebuild.sh b/packer/provision/basebuild.sh index c73035ddc..261f75fde 100644 --- a/packer/provision/basebuild.sh +++ b/packer/provision/basebuild.sh @@ -15,6 +15,19 @@ rh_systems() { # Autorelease support packages yum install -y firefox python-tox xmlstarlet xvfb + # Install chrome to support ChromeDriver + cat <<EOF > /etc/yum.repos.d/google-chrome.repo +[google-chrome] +name=google-chrome +baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch +enabled=1 +gpgcheck=1 +gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub +EOF + + yum -y update + yum -y install google-chrome-stable + # Additional libraries for Python ncclient yum install -y libxml2 libxslt libxslt-devel libffi libffi-devel @@ -49,6 +62,12 @@ ubuntu_systems() { # Autorelease support packages apt-get install -y firefox python-tox xmlstarlet xvfb + # Install chrome to support ChromeDriver + wget -q -O - https://dl-ssl.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-chrome.list + apt-get update -y + apt-get install -y google-chrome-stable + # Additional libraries for Python ncclient apt-get install -y wget unzip python-ncclient |