This is an automated email from the ASF dual-hosted git repository.

iwasakims pushed a commit to branch branch-3.6
in repository https://gitbox.apache.org/repos/asf/bigtop.git


The following commit(s) were added to refs/heads/branch-3.6 by this push:
     new 82bff6704 BIGTOP-4523. Make container tagging consistent between Linux 
and Mac OS on ARM. (#1384)
82bff6704 is described below

commit 82bff670459627c6d683704b2aa5d0f7092015c7
Author: Masatake Iwasaki <[email protected]>
AuthorDate: Fri May 8 11:06:54 2026 +0900

    BIGTOP-4523. Make container tagging consistent between Linux and Mac OS on 
ARM. (#1384)
    
    (cherry picked from commit 5da662a51e9aa2888f3aa60200e5cc2b82a8e629)
---
 docker/bigtop-puppet/build.sh | 14 ++++++++------
 docker/bigtop-slaves/build.sh |  4 ++++
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/docker/bigtop-puppet/build.sh b/docker/bigtop-puppet/build.sh
index 7e3b2021b..8ebc9e4be 100755
--- a/docker/bigtop-puppet/build.sh
+++ b/docker/bigtop-puppet/build.sh
@@ -31,11 +31,10 @@ PREFIX=$(echo "$1" | cut -d '-' -f 1)
 OS=$(echo "$1" | cut -d '-' -f 2)
 VERSION=$(echo "$1" | cut -d '-' -f 3-)
 ARCH=$(uname -m)
-if [ "${ARCH}" != "x86_64" ];then
-ARCH="-${ARCH}"
-else
-ARCH=""
-fi
+case "$ARCH" in
+    aarch64|arm64)   ARCH="aarch64" ;;
+    *)               ARCH="$ARCH" ;;
+esac
 
 ENV_PATH=""
 if [ ${OS} = "centos" -a ${VERSION} -ge 8 ]; then
@@ -67,5 +66,8 @@ case "${OS}-${VERSION}" in
     ;;
 esac
 
-docker build --no-cache -t bigtop/puppet:${PREFIX}-${OS}-${VERSION}${ARCH} .
+if [ "${ARCH}" != "x86_64" ];then
+  VERSION="${VERSION}-${ARCH}"
+fi
+docker build --no-cache -t bigtop/puppet:${PREFIX}-${OS}-${VERSION} .
 rm -f Dockerfile puppetize.sh
diff --git a/docker/bigtop-slaves/build.sh b/docker/bigtop-slaves/build.sh
index 6a0640a4f..d344dbff0 100755
--- a/docker/bigtop-slaves/build.sh
+++ b/docker/bigtop-slaves/build.sh
@@ -31,6 +31,10 @@ PREFIX=$(echo "$1" | cut -d '-' -f 1)
 OS=$(echo "$1" | cut -d '-' -f 2)
 VERSION=$(echo "$1" | cut -d '-' -f 3-)
 ARCH=$(uname -m)
+case "$ARCH" in
+    aarch64|arm64)   ARCH="aarch64" ;;
+    *)               ARCH="$ARCH" ;;
+esac
 
 ## Workaround for docker defect on linaros cloud
 if [ "${ARCH}" = "aarch64" ];then

Reply via email to