You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by he...@apache.org on 2022/09/08 02:40:27 UTC

[inlong] branch release-1.3.0 updated: [INLONG-5816][Docker] Add platform for aarch64 (#5817)

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

healchow pushed a commit to branch release-1.3.0
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/release-1.3.0 by this push:
     new dd75862ab [INLONG-5816][Docker] Add platform for aarch64 (#5817)
dd75862ab is described below

commit dd75862abf5dae3ae446324ab50d9881145343a1
Author: Lucas <10...@users.noreply.github.com>
AuthorDate: Wed Sep 7 18:53:52 2022 +0800

    [INLONG-5816][Docker] Add platform for aarch64 (#5817)
---
 docker/build-docker-images.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/docker/build-docker-images.sh b/docker/build-docker-images.sh
index dc2c43458..05790e87b 100644
--- a/docker/build-docker-images.sh
+++ b/docker/build-docker-images.sh
@@ -57,6 +57,11 @@ for (( i=1; i<=$#; i++)); do
       echo "Wrong arch name: ${BUILD_ARCH}. Please input aarch64 or x86."
       exit 1
     fi
+    if [ "$BUILD_ARCH" = "$ARCH_AARCH64" ]; then
+      USE_PLATFORM="$PLATFORM_AARCH64"
+    else
+      USE_PLATFORM="$PLATFORM_X86"
+    fi
     shift
   elif [ "${!i}" = "-h" ] || [ "${!i}" = "--help" ]; then
     helpFunc