From 42bf82770fa7c8a1252987dae7dc64a79979b0f7 Mon Sep 17 00:00:00 2001 From: Jessica Wagantall Date: Thu, 9 Aug 2018 22:02:42 -0700 Subject: Install Python3.6 and deps Install python-3.6 and dependency packages needed for docker images Change-Id: Ic54346243ebfd8aad75ea9dbf6d695cdc2f580d8 Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall --- packer/provision/local-docker.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'packer/provision/local-docker.yaml') diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml index db2d797c3..c3cddd4ce 100644 --- a/packer/provision/local-docker.yaml +++ b/packer/provision/local-docker.yaml @@ -44,3 +44,24 @@ 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 -- cgit 1.2.3-korg