You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by cr...@apache.org on 2023/12/06 21:13:55 UTC
(superset) branch master updated: feat(docker): Add ARM builds (#26196)
This is an automated email from the ASF dual-hosted git repository.
craigrueda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new c8e69e2f9d feat(docker): Add ARM builds (#26196)
c8e69e2f9d is described below
commit c8e69e2f9d57f1aaecb4980c72dfb231b475d6a0
Author: Aleksey Karpov <86...@users.noreply.github.com>
AuthorDate: Thu Dec 7 00:13:47 2023 +0300
feat(docker): Add ARM builds (#26196)
---
scripts/docker_build_push.sh | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/scripts/docker_build_push.sh b/scripts/docker_build_push.sh
index 80d08c47e3..8ae82faaeb 100755
--- a/scripts/docker_build_push.sh
+++ b/scripts/docker_build_push.sh
@@ -85,6 +85,7 @@ else
DEV_TAG="${REPO_NAME}:${LATEST_TAG}-dev"
fi
+for BUILD_PLATFORM in $ARCHITECTURE_FOR_BUILD; do
#
# Build the dev image
#
@@ -96,7 +97,7 @@ docker buildx build --target dev \
-t "${REPO_NAME}:${SHA}-dev" \
-t "${REPO_NAME}:${REFSPEC}-dev" \
-t "${DEV_TAG}" \
- --platform linux/amd64 \
+ --platform ${BUILD_PLATFORM} \
--label "sha=${SHA}" \
--label "built_at=$(date)" \
--label "target=dev" \
@@ -113,7 +114,7 @@ docker buildx build --target lean \
-t "${REPO_NAME}:${SHA}" \
-t "${REPO_NAME}:${REFSPEC}" \
-t "${REPO_NAME}:${LATEST_TAG}" \
- --platform linux/amd64 \
+ --platform ${BUILD_PLATFORM} \
--label "sha=${SHA}" \
--label "built_at=$(date)" \
--label "target=lean" \
@@ -130,7 +131,7 @@ docker buildx build --target lean \
-t "${REPO_NAME}:${SHA}-py310" \
-t "${REPO_NAME}:${REFSPEC}-py310" \
-t "${REPO_NAME}:${LATEST_TAG}-py310" \
- --platform linux/amd64 \
+ --platform ${BUILD_PLATFORM} \
--build-arg PY_VER="3.10-slim-bookworm"\
--label "sha=${SHA}" \
--label "built_at=$(date)" \
@@ -148,7 +149,7 @@ docker buildx build --target lean \
-t "${REPO_NAME}:${SHA}-py39" \
-t "${REPO_NAME}:${REFSPEC}-py39" \
-t "${REPO_NAME}:${LATEST_TAG}-py39" \
- --platform linux/amd64 \
+ --platform ${BUILD_PLATFORM} \
--build-arg PY_VER="3.9-slim-bullseye"\
--label "sha=${SHA}" \
--label "built_at=$(date)" \
@@ -156,8 +157,6 @@ docker buildx build --target lean \
--label "build_actor=${GITHUB_ACTOR}" \
.
-
-for BUILD_PLATFORM in $ARCHITECTURE_FOR_BUILD; do
#
# Build the "websocket" image
#