-
Notifications
You must be signed in to change notification settings - Fork 1
/
bootstrap.sh
29 lines (26 loc) · 1023 Bytes
/
bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get install -y git
if [ ! -d "/home/vagrant/mininet" ]; then
sudo -u vagrant git clone git://github.com/mininet/mininet
fi
/home/vagrant/mininet/util/install.sh -a
# Update maven to latest
cd /home/vagrant/bin
sudo -u vagrant wget http://mirror.bit.edu.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
sudo -u vagrant tar xvf apache-maven-3.3.9-bin.tar.gz
rm -rf apache-maven
sudo -u vagrant mv apache-maven-3.3.9 apache-maven
rm apache-maven-3.3.9-bin.tar.gz
# Setup OpenDaylight development environment
sudo -u vagrant mkdir -p /home/vagrant/.m2
pushd /home/vagrant/.m2
sudo -u vagrant mv -n ~/.m2/settings.xml{,.orig}
sudo -u vagrant wget https://raw.githubusercontent.com/opendaylight/odlparent/master/settings.xml
popd
# Install MapleCore to maven local repository
sudo -u vagrant git clone https://github.com/snlab/MapleCore.git
pushd MapleCore
git checkout new_core_design
HOME=/home/vagrant sudo -u vagrant mvn clean install -DskipTests
popd