Fixes setup.sh pxebr checks
[genesis.git] / fuel / build / docker / ubuntu-builder / install.sh
1 #!/bin/bash
2 ##############################################################################
3 # Copyright (c) 2015 Ericsson AB and others.
4 # stefan.k.berg@ericsson.com
5 # jonas.bjurel@ericsson.com
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
11
12 #Install Oracle Java 7 jdk
13 echo "Installing JAVA 7"
14 apt-get update
15 add-apt-repository ppa:webupd8team/java -y
16 apt-get update
17 echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
18 apt-get install oracle-java7-installer -y
19
20 #Install Maven 3
21 echo deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main >> /etc/apt/sources.list
22 echo deb-src http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main >> /etc/apt/sources.list
23 apt-get update || exit 1
24 sudo apt-get install -y --force-yes maven3 || exit 1
25 ln -s /usr/share/maven3/bin/mvn /usr/bin/mvn