X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=packer%2Fprovision%2Flocal-docker.yaml;h=061995174e09fec6857a2141c3afdd80d0abd8a1;hb=32c6e4ca57baf6d144567d98660575e227cd4c86;hp=b2b0a52b59c83813d75dbc76db1e48c50dbf246e;hpb=77d0a1485d68c20bfa9f3a61af4fb32e6f6983bb;p=ci-management.git diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml index b2b0a52b5..061995174 100644 --- a/packer/provision/local-docker.yaml +++ b/packer/provision/local-docker.yaml @@ -6,7 +6,7 @@ become_method: sudo vars: apt_file: /etc/apt/sources.list.d/google-chrome.list - docker_compose_version: 1.17.1 + docker_compose_version: 1.29.2 glide_checksum: sha256:c403933503ea40308ecfadcff581ff0dc3190c57958808bb9eed016f13f6f32c glide_version: v0.13.1 golang_version: 1.9.1 @@ -142,9 +142,17 @@ update_cache: yes state: fixed become: true - when: ansible_distribution == 'Ubuntu' + when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04' + + - name: Install libnode-dev dep for npm + apt: + name: libnode-dev + update_cache: yes + state: fixed + become: true + when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04' - - name: Install supporting packages + - name: Install supporting packages (Ubuntu 18.04) apt: name: - unzip @@ -161,15 +169,32 @@ - crudini - maven - python-ncclient + update_cache: yes + state: fixed + become: true + when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04' + + - name: Install supporting packages (Ubuntu 20.04) + apt: + name: + - unzip + - xz-utils + - libxml-xpath-perl + - wget + - make + - sshuttle + - netcat + - libssl-dev + - libffi-dev - xmlstarlet - xvfb - crudini - maven - - python-ncclient + - python3-ncclient update_cache: yes state: fixed become: true - when: ansible_distribution == 'Ubuntu' + when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04' - name: Install npm and addon packages apt: @@ -185,14 +210,17 @@ - name: npm self-update command: npm install npm@{{ npm_version }} -g become: true + when: ansible_distribution == 'Ubuntu' - name: npm install n module command: npm install n -g become: true + when: ansible_distribution == 'Ubuntu' - name: Upgrade latest stable node version command: n stable | PATH="$PATH" become: true + when: ansible_distribution == 'Ubuntu' - name: Add Google Chrome key apt_key: @@ -221,38 +249,40 @@ - name: Install Erlang dependency packages apt: name: - - libwxgtk3.0-0v5 - libsctp1 - libwxbase3.0-0v5 become: true when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' + - name: Install Erlang dependency package libwxgtk3 for 18.04 + apt: + name: + - libwxgtk3.0-0v5 + become: true + when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04' + + - name: Install Erlang dependency package libwxgtk3 for 20.04 + apt: + name: + - libwxgtk3.0-gtk3-0v5 + become: true + when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04' + - name: Install Erlang apt: deb: https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_19.3.6-1~ubuntu~trusty_amd64.deb become: true when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' - - name: Clone rebar3 - git: - repo: 'https://github.com/erlang/rebar3.git' - dest: /tmp/rebar3 - version: v3.13 - when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' - - - name: Install rebar3 to bin - copy: - src: /tmp/rebar3/rebar3 - dest: /usr/bin/rebar3 - mode: 0755 - remote_src: true + - name: 'Download latest rebar3 bin' + command: curl -o /usr/bin/rebar3 -L "https://s3.amazonaws.com/rebar3/rebar3" become: true when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' - - name: Remove unused rebar3 source - file: - path: /tmp/rebar3 - state: absent + - file: + path: /usr/bin/rebar3 + mode: "+x" + become: true when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' - name: Download geckodriver