Replace the root command with user mode 55/855/3
authorJingzhao.Ni <Jingzhao.Ni@arm.com>
Mon, 27 May 2019 12:31:16 +0000 (20:31 +0800)
committerJingzhao.Ni <Jingzhao.Ni@arm.com>
Tue, 28 May 2019 05:56:11 +0000 (13:56 +0800)
The "sudo pip install" command cause some error when deploying
compass. So replace the "sudo pip install" with the "python -m
 pip install pyyaml" command.

Signed-off-by: Jingzhao.Ni <Jingzhao.Ni@arm.com>
Change-Id: Ia86e5a8b1c75e6367d044e94e356f7d1a855418e

jjb/iec/iec-compass-build.sh

index 64cea9e..2014b80 100755 (executable)
@@ -7,6 +7,7 @@ git clone https://github.com/opnfv/compass4nfv.git
 cd compass4nfv
 
 COMPASS_WORK_DIR=$WORKSPACE/../compass-work
+
 mkdir -p $COMPASS_WORK_DIR
 ln -s $COMPASS_WORK_DIR work
 
@@ -14,6 +15,8 @@ sudo docker rm -f `docker ps | grep compass | cut -f1 -d' '` || true
 
 curl -s http://people.linaro.org/~yibo.cai/compass/compass4nfv-arm64-fixup.sh | bash || true
 
+sed -i "s/sudo pip install pyyaml/python -m pip install pyyaml --user/g" build.sh
+
 ./build.sh
 
 exit 0