Install Python3.6 and deps 55/59955/3
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Fri, 10 Aug 2018 05:02:42 +0000 (22:02 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Fri, 10 Aug 2018 05:13:01 +0000 (22:13 -0700)
Install python-3.6 and dependency packages
needed for docker images

Change-Id: Ic54346243ebfd8aad75ea9dbf6d695cdc2f580d8
Issue-ID: CIMAN-33
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
packer/provision/local-docker.yaml

index db2d797..c3cddd4 100644 (file)
         name: python-tox
         state: present
       become: true
+
+    - apt_repository:
+        repo: ppa:jonathonf/python-3.6
+        state: present
+      become: true
+
+    - name: Update and upgrade apt packages
+      apt:
+        upgrade: yes
+        update_cache: yes
+      become: true
+
+    - name: Install Python 3.6 and packages
+      apt:
+        name:
+          - python3.6
+          - python3.6-dev
+          - libssl-dev
+          - libmysqlclient-dev
+          - gcc
+      become: true