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

chenhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 5a47c1d3a0 [release] Force to use linux/amd64 to build release (#4060)
5a47c1d3a0 is described below

commit 5a47c1d3a0d4357272776c3131bac896e60be5fa
Author: Yong Zhang <[email protected]>
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.
---
 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

Reply via email to