Install Python3.6 for Ubuntu images 97/18797/4
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Fri, 13 Oct 2017 17:37:35 +0000 (10:37 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Fri, 13 Oct 2017 17:44:39 +0000 (17:44 +0000)
Add Python3.6 version to be used by dcaegen2
project.

Change-Id: Ie6a1afde8a4697f094a862bfd0870fc5a844bf47
Issue-ID: CIMAN-108
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
packer/provision/docker.sh

index 593b5c7..325e328 100644 (file)
@@ -32,6 +32,11 @@ EOL
 ubuntu_systems() {
     # Assumes that python is already installed by basebuild
 
+    # Install Python3.6
+    sudo add-apt-repository -y ppa:jonathonf/python-3.6
+    sudo apt-get update
+    sudo apt-get install -y python3.6
+
     # Install dependencies for robotframework and robotframework-sshlibrary
     apt install -y unzip sshuttle netcat libffi-dev libssl-dev
     wget https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz