2 apt-get update && apt-get install -y \
20 python-setuptools && \
21 easy_install -U setuptools
23 apt-get -y autoremove && apt-get clean
27 source_file=/etc/apt/sources.list
28 sed -i -e 's/^deb \([^/[]\)/deb [arch=amd64] \1/g' "${source_file}"
29 sed -i -e 's/^deb-src /# deb-src /g' "${source_file}"
31 sub_source_file=/etc/apt/sources.list.d/yardstick.list
32 touch "${sub_source_file}"
33 echo -e "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ trusty main universe multiverse restricted
34 deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main universe multiverse restricted
35 deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ trusty-security main universe multiverse restricted
36 deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ trusty-proposed main universe multiverse restricted" > "${sub_source_file}"
37 echo "vm.mmap_min_addr = 0" > /etc/sysctl.d/mmap_min_addr.conf
38 dpkg --add-architecture arm64
39 apt-get install -y qemu-user-static libc6:arm64
41 # install yardstick + dependencies
43 pip install -r requirements.txt