Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
NSB: Rename traffic_profile to trex_traffic_profile
[yardstick.git]
/
install.sh
diff --git
a/install.sh
b/install.sh
index
db0bff4
..
5cd8367
100755
(executable)
--- 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
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}"
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 /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
service nginx restart
uwsgi -i /etc/yardstick/yardstick.ini