blob: bc3f4b28e3b76e8acdc9bf9eedb0fe288d68d028 [file] [log] [blame]
Chetan Gaonkercc19ac42016-05-04 17:21:50 -07001#!/usr/bin/env bash
2apt-get update
3apt-get -y install apt-transport-https ca-certificates
4apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
5if [ ! -f /etc/apt/sources.list.d/docker.list ]; then
6 echo deb https://apt.dockerproject.org/repo ubuntu-trusty main | tee /etc/apt/sources.list.d/docker.list
7fi
8apt-get update
9apt-get purge lxc-docker || true
10apt-get -y install linux-image-extra-$(uname -r)
11apt-get -y install apparmor
12echo "Installing Docker"
13apt-get -y install docker-engine
14service docker start
15echo "Verifying Docker installation"
Chetan Gaonker8a0f7822016-05-10 08:30:43 -070016docker run --rm hello-world || exit 127
17docker rmi hello-world
Chetan Gaonker06f02f92016-05-04 17:55:20 -070018echo "Pulling ONOS latest and 1.5"
Chetan Gaonkercc19ac42016-05-04 17:21:50 -070019docker pull onosproject/onos:latest || exit 127
Chetan Gaonker06f02f92016-05-04 17:55:20 -070020docker pull onosproject/onos:1.5 || exit 127
Chetan Gaonker0ff7e782016-05-06 11:57:33 -070021apt-get -y install wget git python python-dev python-pip python-setuptools python-scapy python-pexpect tcpdump arping
Chetan Gaonkercc19ac42016-05-04 17:21:50 -070022easy_install nose
23apt-get -y install openvswitch-common openvswitch-switch
24pip install -U scapy
25pip install monotonic
26pip install configObj
27pip install -U docker-py
28pip install -U pyyaml
29pip install -U nsenter
30pip install -U pyroute2
31pip install -U netaddr
32pip install scapy-ssl_tls
Chetan Gaonker66bff932016-05-09 10:06:37 -070033( cd /tmp && git clone https://github.com/jpetazzo/pipework.git && cp -v pipework/pipework /usr/bin && rm -rf pipework )
Chetan Gaonkercc19ac42016-05-04 17:21:50 -070034## Special mode to pull cord-tester repo in case prereqs was installed by hand instead of repo
35if [ "$1" = "-test" ]; then
36 rm -rf cord-tester
37 git clone https://github.cyanoptics.com/cgaonker/cord-tester.git
Chetan Gaonker66bff932016-05-09 10:06:37 -070038fi