Install Chrome on docker images
Add Chrome install role for docker images.
Used by CSIT jobs.
Change-Id: I7c891e6338c546c851d222786a9a4a5c232398b4
Issue-ID: CIMAN-33
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml
index a82a03f..5a76dbc 100644
--- a/packer/provision/local-docker.yaml
+++ b/packer/provision/local-docker.yaml
@@ -5,6 +5,7 @@
become_user: root
become_method: sudo
vars:
+ apt_file: /etc/apt/sources.list.d/google-chrome.list
docker_compose_version: 1.17.1
glide_checksum: sha256:c403933503ea40308ecfadcff581ff0dc3190c57958808bb9eed016f13f6f32c
glide_version: v0.13.1
@@ -96,3 +97,23 @@
- maven
- python-ncclient
become: true
+
+ - name: Add Google Chrome key
+ apt_key:
+ url: https://dl-ssl.google.com/linux/linux_signing_key.pub
+ state: present
+ become: true
+
+ - name: Add Google Chrome repo
+ copy: content="deb http://dl.google.com/linux/chrome/deb/ stable main" dest={{apt_file}} owner=root group=root mode=644
+ become: true
+
+ - name: Update apt cache
+ apt: update_cache=yes
+ become: true
+
+ - name: Install Google Chrome
+ apt:
+ name: google-chrome-stable
+ state: present
+ become: true