You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by yo...@apache.org on 2023/08/29 06:47:52 UTC
[bookkeeper] 07/08: [release] Force to use linux/amd64 to build release (#4060)
This is an automated email from the ASF dual-hosted git repository.
yong pushed a commit to branch branch-4.16
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
commit 15d310f9bdff8678a02adbbab2b2b40efc1758a4
Author: Yong Zhang <zh...@gmail.com>
AuthorDate: Mon Aug 28 21:39:21 2023 +0800
[release] Force to use linux/amd64 to build release (#4060)
---
### Motivation
Because we have a Native IO that needs to be built from
cpp code. The build platform will impact the target library.
People are using different laptop to execute the release
process with docker, we need to force the image to use
linux/amd64 platform to ensure the .so lib build out the
correct platform lib.
Since most of time we are using amd64 to run the bookie,
making the dev docker image build from amd64.
(cherry picked from commit 5a47c1d3a0d4357272776c3131bac896e60be5fa)
---
dev/release/000-run-docker.sh | 2 +-
dev/release/Dockerfile | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev/release/000-run-docker.sh b/dev/release/000-run-docker.sh
index 4ce19c07d1..7854dc49dd 100755
--- a/dev/release/000-run-docker.sh
+++ b/dev/release/000-run-docker.sh
@@ -48,7 +48,7 @@ else # boot2docker uid and gid
fi
docker build -t "${IMAGE_NAME}-${USER_NAME}" - <<UserSpecificDocker
-FROM ${IMAGE_NAME}
+FROM --platform=linux/amd64 ${IMAGE_NAME}
RUN groupadd --non-unique -g ${GROUP_ID} ${USER_NAME} && \
useradd -l -g ${GROUP_ID} -u ${USER_ID} -k /root -m ${USER_NAME}
ENV HOME /home/${USER_NAME}
diff --git a/dev/release/Dockerfile b/dev/release/Dockerfile
index 6901b304cf..06e34d38af 100644
--- a/dev/release/Dockerfile
+++ b/dev/release/Dockerfile
@@ -17,7 +17,7 @@
# under the License.
#
-FROM maven:3.9.0-eclipse-temurin-8
+FROM --platform=linux/amd64 maven:3.9.0-eclipse-temurin-8
RUN apt-get update
RUN apt-get install -y g++ cmake gnupg2 vim subversion