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 0bd741d BIGTOP-3176. [Build] (#483)
0bd741d is described below
commit 0bd741dcfa76183ab5b4901ffa7b645f5872b85c
Author: Evans Ye <[email protected]>
AuthorDate: Tue Feb 26 18:46:37 2019 +0800
BIGTOP-3176. [Build] (#483)
---
bigtop-ci/build.sh | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/bigtop-ci/build.sh b/bigtop-ci/build.sh
index ef16a6f..e516f6f 100755
--- a/bigtop-ci/build.sh
+++ b/bigtop-ci/build.sh
@@ -65,8 +65,14 @@ if [ "$UNSATISFIED" == true ]; then
usage
fi
+IMAGE_NAME=bigtop/slaves:$PREFIX-$OS
+ARCH=$(uname -m)
+if [ "x86_64" != $ARCH ]; then
+ IMAGE_NAME=$IMAGE_NAME-$ARCH
+fi
+
# Start up build container
-CONTAINER_ID=`docker run -d $NEXUS bigtop/slaves:$PREFIX-$OS /sbin/init`
+CONTAINER_ID=`docker run -d $NEXUS $IMAGE_NAME /sbin/init`
# Copy bigtop repo into container
docker cp $BIGTOP_HOME $CONTAINER_ID:/bigtop