[bugfix] gui build faied in yardstick docker build 06/69506/2
authorrexlee8776 <limingjiang@huawei.com>
Mon, 6 Jan 2020 02:43:56 +0000 (02:43 +0000)
committerrexlee8776 <limingjiang@huawei.com>
Mon, 6 Jan 2020 02:50:55 +0000 (02:50 +0000)
JIRA: YARDSTICK-1626
it's due to the version of nodejs and npm too old in ubuntu 16.04
default repo

Change-Id: I8c969530f7e538104bf5fb39223f720e53642d05
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
gui/gui.sh

index 12a1492..0746fb4 100755 (executable)
@@ -1,5 +1,6 @@
+curl -sL https://deb.nodesource.com/setup_8.x -o /tmp/nodesource_setup.sh
+bash /tmp/nodesource_setup.sh
 apt-get install -y nodejs
-apt-get install -y npm
 ln -s /usr/bin/nodejs /usr/bin/node
 npm install
 npm install -g grunt