Stop bower from reaching outside the sandbox
Change-Id: Ie55f247a7f8e994c4422b0db512e5436e01d1585
diff --git a/web/gui/BUILD b/web/gui/BUILD
index 3a2bfcc..8cca7b9 100644
--- a/web/gui/BUILD
+++ b/web/gui/BUILD
@@ -119,7 +119,9 @@
outs = ["onos-gui-npm-install.tar"],
cmd = " ROOT=`pwd` &&" +
" export XDG_CONFIG_HOME=$(@D)/config &&" + # npm config cache to the sandbos
- " export BABEL_DISABLE_CACHE=1" + # turn off babel cache
+ " export BABEL_DISABLE_CACHE=1 &&" + # turn off babel cache
+ " export bower_storage__packages=.bower &&" +
+ " export bower_storage__registry=.bower &&" +
" NPM=$$ROOT/$(location @nodejs//:bin/npm) &&" +
" mkdir -p tools/gui &&" +
" cd tools/gui &&" +
@@ -144,6 +146,8 @@
cmd = "(ROOT=`pwd` &&" +
" export XDG_CONFIG_HOME=$(@D)/config &&" +
" export BABEL_DISABLE_CACHE=1" +
+ " export bower_storage__packages=.bower &&" +
+ " export bower_storage__registry=.bower &&" +
" NPM=$(location @nodejs//:bin/npm) &&" +
" (mkdir -p web/gui && cd web/gui && tar xf ../../$(location :_web_app_all)) &&" +
" mkdir -p tools/gui && cd tools/gui &&" +