blob: 2c68e5f3297b7cac46287d84d27783a7ca7e2881 [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"
16docker run hello-world || exit 127
Chetan Gaonker06f02f92016-05-04 17:55:20 -070017echo "Pulling ONOS latest and 1.5"
Chetan Gaonkercc19ac42016-05-04 17:21:50 -070018docker pull onosproject/onos:latest || exit 127
Chetan Gaonker06f02f92016-05-04 17:55:20 -070019docker pull onosproject/onos:1.5 || exit 127
Chetan Gaonker0ff7e782016-05-06 11:57:33 -070020apt-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 -070021easy_install nose
22apt-get -y install openvswitch-common openvswitch-switch
23pip install -U scapy
24pip install monotonic
25pip install configObj
26pip install -U docker-py
27pip install -U pyyaml
28pip install -U nsenter
29pip install -U pyroute2
30pip install -U netaddr
31pip install scapy-ssl_tls
Chetan Gaonker66bff932016-05-09 10:06:37 -070032( 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 -070033## Special mode to pull cord-tester repo in case prereqs was installed by hand instead of repo
34if [ "$1" = "-test" ]; then
35 rm -rf cord-tester
36 git clone https://github.cyanoptics.com/cgaonker/cord-tester.git
Chetan Gaonker66bff932016-05-09 10:06:37 -070037fi