From 67927999de6f8c75dc21059b3935279913855931 Mon Sep 17 00:00:00 2001 From: "Jingzhao.Ni" Date: Mon, 27 May 2019 20:31:16 +0800 Subject: [PATCH] Replace the root command with user mode 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 Change-Id: Ia86e5a8b1c75e6367d044e94e356f7d1a855418e --- jjb/iec/iec-compass-build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jjb/iec/iec-compass-build.sh b/jjb/iec/iec-compass-build.sh index 64cea9e..2014b80 100755 --- a/jjb/iec/iec-compass-build.sh +++ b/jjb/iec/iec-compass-build.sh @@ -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 -- 2.16.6