aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorAce Lee <liyin11@huawei.com>2017-11-20 10:47:19 +0000
committerRoss Brattain <ross.b.brattain@intel.com>2017-12-16 09:36:59 +0000
commitd49ecc822d24bcd53675c0186a178ac8adc894c0 (patch)
tree27f9a153e55b08e3b318bfa147a42d5ac917de2d /install.sh
parent74c0525b9f4ee426fde171d1cefc96dc8d6f3fd1 (diff)
fix docker client don't have trex_client
JIRA: YARDSTICK-854 Add trex_client in docker, so we could run NSB testcase in docker container. Change-Id: Iac1393d6e3a175137973190936ab69a1f2ce8272 Signed-off-by: Ace Lee <liyin11@huawei.com> (cherry picked from commit 75606db72e5d3afb6afe590e76b3baef3af3f5c6)
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index dfad3a51a..e9febd1ab 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}"
@@ -103,5 +104,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