Merge "influx: use urlsplit.hostname instead of netloc"
[yardstick.git] / install.sh
1 # install tools
2 apt-get update && apt-get install -y \
3     wget \
4     expect \
5     curl \
6     git \
7     sshpass \
8     qemu-utils \
9     kpartx \
10     libffi-dev \
11     libssl-dev \
12     python \
13     python-dev \
14     libxml2-dev \
15     libxslt1-dev \
16     python-setuptools && \
17     easy_install -U setuptools
18
19 apt-get -y autoremove && apt-get clean
20
21
22 # fit for arm64
23 source_file=/etc/apt/sources.list
24 sed -i -e 's/^deb \([^/[]\)/deb [arch=amd64] \1/g' "${source_file}"
25 sed -i -e 's/^deb-src /# deb-src /g' "${source_file}"
26
27 sub_source_file=/etc/apt/sources.list.d/yardstick.list
28 touch "${sub_source_file}"
29 echo -e "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ trusty main universe multiverse restricted
30 deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main universe multiverse restricted
31 deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ trusty-security main universe multiverse restricted
32 deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ trusty-proposed main universe multiverse restricted" > "${sub_source_file}"
33 echo "vm.mmap_min_addr = 0" > /etc/sysctl.d/mmap_min_addr.conf
34 dpkg --add-architecture arm64
35 apt-get install -y qemu-user-static libc6:arm64
36
37 # install yardstick + dependencies
38 easy_install -U pip
39 pip install -r requirements.txt
40 pip install .