X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=install.sh;h=5cd83677b9ccf622a19a131ff1752fcb3a5fe49c;hb=9a71438273cefd57c652b6049c697bdf137088c8;hp=db0bff41e3b334693634783fd939a1c511ff38be;hpb=7f0f1eaf717f7016d2f9ec5328cf9a0d02104222;p=yardstick.git diff --git a/install.sh b/install.sh index db0bff41e..5cd83677b 100755 --- a/install.sh +++ b/install.sh @@ -16,6 +16,7 @@ UBUNTU_ARCHIVE_URL="http://archive.ubuntu.com/ubuntu/" source /etc/os-release source_file=/etc/apt/sources.list +NSB_DIR="/opt/nsb_bin" if [[ "${DOCKER_ARCH}" == "aarch64" ]]; then sed -i -e 's/^deb \([^/[]\)/deb [arch=arm64] \1/g' "${source_file}" @@ -105,5 +106,11 @@ cd "${PWD}/gui" && /bin/bash gui.sh mkdir -p /etc/nginx/yardstick mv dist /etc/nginx/yardstick/gui +mkdir -p ${NSB_DIR} + +wget -P ${NSB_DIR}/ http://artifacts.opnfv.org/yardstick/third-party/trex_client.tar.gz +tar xvf ${NSB_DIR}/trex_client.tar.gz -C ${NSB_DIR} +rm -f ${NSB_DIR}/trex_client.tar.gz + service nginx restart uwsgi -i /etc/yardstick/yardstick.ini