diff options
author | Thanh Ha (zxiiro) <thanh.ha@linuxfoundation.org> | 2018-08-17 20:38:53 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-08-17 20:38:53 +0000 |
commit | 663aaf9c3ff1a24550ef30c58f9eb62558c5bfd2 (patch) | |
tree | 602ace60042223f2a2637d90a7f6f30bb1f99244 | |
parent | 41ca615098a4e1c7a10c4bb1768c832183557aba (diff) | |
parent | 5db567ba34565c7d102d27f3c833f55e0d527bd0 (diff) |
Merge "Install Chrome on docker images"
-rw-r--r-- | packer/provision/local-docker.yaml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml index a82a03f6b..5a76dbc45 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 |