VPP-8: use jdk8 for VPP builds 77/877/5
authorMarek Gradzki <mgradzki@cisco.com>
Tue, 26 Apr 2016 07:35:58 +0000 (09:35 +0200)
committerEd Warnicke <eaw@cisco.com>
Fri, 29 Apr 2016 07:18:09 +0000 (03:18 -0400)
Change-Id: Ieec25be815128e53328493700d9a3d228bceba2b
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
vagrant/basebuild/bootstrap.sh

index 1398925..f289c63 100644 (file)
@@ -1,5 +1,12 @@
 
 ubuntu_systems() {
+
+    if [ "$(lsb_release -r | awk '{print $2}')" == "14.04" ]
+    then
+        # openjdk-8-jdk is not available in 14.04 repos by default
+        add-apt-repository ppa:openjdk-r/ppa
+    fi
+
     # Standard update + upgrade dance
     apt-get update
     apt-get upgrade -y
@@ -21,7 +28,7 @@ ubuntu_systems() {
     apt-get install -y linux-image-extra-`uname -r`
 
     # Install jdk and maven
-    apt-get install -y openjdk-7-jdk
+    apt-get install -y openjdk-8-jdk
     # $$$ comment out for the moment
     # apt-get install -y --force-yes maven3