You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by ev...@apache.org on 2019/03/04 16:27:32 UTC
[bigtop] branch master updated: BIGTOP-3181. Build as non-root for
COMPONENT-pkg-ind (#488)
This is an automated email from the ASF dual-hosted git repository.
evansye pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/master by this push:
new 82f63b6 BIGTOP-3181. Build as non-root for COMPONENT-pkg-ind (#488)
82f63b6 is described below
commit 82f63b6ab87e4e41a140ae4b30d7f2fced98459a
Author: Evans Ye <ev...@apache.org>
AuthorDate: Tue Mar 5 00:27:28 2019 +0800
BIGTOP-3181. Build as non-root for COMPONENT-pkg-ind (#488)
---
bigtop-ci/build.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bigtop-ci/build.sh b/bigtop-ci/build.sh
index de5b4fb..3a5f250 100755
--- a/bigtop-ci/build.sh
+++ b/bigtop-ci/build.sh
@@ -78,9 +78,10 @@ trap "docker rm -f $CONTAINER_ID" EXIT
# Copy bigtop repo into container
docker cp $BIGTOP_HOME $CONTAINER_ID:/bigtop
docker cp $BIGTOP_HOME/bigtop-ci/entrypoint.sh $CONTAINER_ID:/bigtop/entrypoint.sh
+docker exec $CONTAINER_ID bash -c "chown -R jenkins:jenkins /bigtop"
# Build
-docker exec $CONTAINER_ID bash -c "cd /bigtop && ./entrypoint.sh $CONFIGURE_NEXUS $TARGET --info"
+docker exec --user jenkins $CONTAINER_ID bash -c "cd /bigtop && ./entrypoint.sh $CONFIGURE_NEXUS $TARGET --info"
RESULT=$?
# save result