diff options
author | Jessica Wagantall <jwagantall@linuxfoundation.org> | 2017-09-26 21:17:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-26 21:17:52 +0000 |
commit | 72cabb6258dce698fa43dc2bd06fe8d10d05c1e8 (patch) | |
tree | 64d4ac00b8710509b8bb9f65e0886547f60fbbb4 | |
parent | aafe9a9c7478acc203aa62239bbd91bcf26ea441 (diff) | |
parent | 886ba64f16075c3bcc071a78dacd6a56ae9e6822 (diff) |
Merge "Install chrome to support ChromeDriver in CSIT"
-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 |