X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=packer%2Fprovision%2Flocal-docker.yaml;h=771199862271488768dd3a21e080088ddcabf87c;hb=ca8c52401b08470f303121308e3e413721c88cb4;hp=76e0cbbd1e2e68986096841a4b1b49a336a12407;hpb=b6f3c8fde7669f74a8950c93da8a67bb73c9f4e4;p=ci-management.git diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml index 76e0cbbd1..771199862 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" @@ -60,21 +61,26 @@ become: true when: ansible_distribution == 'Ubuntu' - - name: Install python-tox + - name: Install python-tox and deps pip: - name: tox + name: + - tox + - tox-pyenv + - virtualenv + - more-itertools~=5.0.0 + - zipp==1.0.0 state: present become: true - apt_repository: - repo: ppa:jonathonf/python-3.6 + repo: ppa:deadsnakes/ppa state: present become: true when: ansible_distribution == 'Ubuntu' - name: Update and upgrade apt packages apt: - upgrade: yes + upgrade: 'yes' update_cache: yes become: true when: ansible_distribution == 'Ubuntu' @@ -88,10 +94,57 @@ - libssl-dev - libmysqlclient-dev - gcc + - python3-venv + become: true + when: ansible_distribution == 'Ubuntu' + + - name: Install Python 3.7 + apt: + name: + - python3.7 + - python3.7-dev + - python3.7-tk + 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: + - libssl1.0-dev + update_cache: yes + state: fixed + become: true + when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04' + + - name: Install nodejs-dev dep for npm + apt: + name: + - nodejs-dev + update_cache: yes + state: fixed become: true when: ansible_distribution == 'Ubuntu' - - name: Install base packages + - name: Install supporting packages apt: name: - unzip @@ -99,25 +152,48 @@ - libxml-xpath-perl - wget - make - - npm - sshuttle - netcat - libssl-dev - libffi-dev - become: true - when: ansible_distribution == 'Ubuntu' - - - name: Install autorelease support packages - apt: - name: - xmlstarlet - xvfb - crudini - maven - python-ncclient + - xmlstarlet + - xvfb + - crudini + - maven + - python-ncclient + update_cache: yes + state: fixed become: true when: ansible_distribution == 'Ubuntu' + - name: Install npm and addon packages + apt: + name: + - nodejs + - npm + - node-gyp + update_cache: yes + state: fixed + 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 @@ -163,12 +239,6 @@ dest: /tmp/rebar3 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' - - name: Bootstrap rebar3 - command: ./bootstrap - args: - chdir: /tmp/rebar3 - when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' - - name: Install rebar3 to bin copy: src: /tmp/rebar3/rebar3