X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=packer%2Fprovision%2Flocal-docker.yaml;h=b2b0a52b59c83813d75dbc76db1e48c50dbf246e;hb=e6b3c1780b06cfe88e28aefc1b44d0163cabca44;hp=0948cd0042b2145300fe9411009ea2d5010e1f5b;hpb=b69272702c17e8217b5d63ea570d20ccf57dd38a;p=ci-management.git diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml index 0948cd004..b2b0a52b5 100644 --- a/packer/provision/local-docker.yaml +++ b/packer/provision/local-docker.yaml @@ -10,6 +10,7 @@ glide_checksum: sha256:c403933503ea40308ecfadcff581ff0dc3190c57958808bb9eed016f13f6f32c glide_version: v0.13.1 golang_version: 1.9.1 + npm_version: "6.14.13" tasks: - name: "Checking for x86_64" @@ -106,6 +107,25 @@ become: true when: ansible_distribution == 'Ubuntu' + - name: Install Python 3.8 + apt: + name: + - python3.8 + - python3.8-dev + - python3.8-tk + become: true + when: ansible_distribution == 'Ubuntu' + + - name: Install Python 3.9 + apt: + name: + - python3.9 + - python3.9-dev + - python3.9-tk + - python3.9-distutils + become: true + when: ansible_distribution == 'Ubuntu' + - name: Install nodejs-dev libssl1.0-dev dep apt: name: @@ -162,6 +182,18 @@ become: true when: ansible_distribution == 'Ubuntu' + - name: npm self-update + command: npm install npm@{{ npm_version }} -g + become: true + + - name: npm install n module + command: npm install n -g + become: true + + - name: Upgrade latest stable node version + command: n stable | PATH="$PATH" + become: true + - name: Add Google Chrome key apt_key: url: https://dl-ssl.google.com/linux/linux_signing_key.pub @@ -205,12 +237,7 @@ git: repo: 'https://github.com/erlang/rebar3.git' dest: /tmp/rebar3 - when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' - - - name: Bootstrap rebar3 - command: ./bootstrap - args: - chdir: /tmp/rebar3 + version: v3.13 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' - name: Install rebar3 to bin