From b72f0489b9a1a28269d80f4ad8ce27dacda29074 Mon Sep 17 00:00:00 2001 From: Mohammad Abdollahpour Date: Thu, 13 Jun 2024 15:12:52 -0400 Subject: [PATCH 1/2] fix: force docker to use linux/amd64 platform this makes it possible to run amd64 images on arm64 platforms through emulation Signed-off-by: Mohammad Abdollahpour --- scripts/release_scripts/run_macaron.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/release_scripts/run_macaron.sh b/scripts/release_scripts/run_macaron.sh index 8c3146799..541617601 100755 --- a/scripts/release_scripts/run_macaron.sh +++ b/scripts/release_scripts/run_macaron.sh @@ -585,6 +585,7 @@ else fi docker run \ + --platform=linux/amd64 \ --network=host \ --rm -i "${tty[@]}" \ -e "USER_UID=${USER_UID}" \ From 86344e642e67dba18f315f4c44b5312ab77504cf Mon Sep 17 00:00:00 2001 From: Mohammad Abdollahpour Date: Thu, 13 Jun 2024 21:16:09 -0400 Subject: [PATCH 2/2] chore: add comment for why we use platform tag on the docker run command Signed-off-by: Mohammad Abdollahpour --- scripts/release_scripts/run_macaron.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/release_scripts/run_macaron.sh b/scripts/release_scripts/run_macaron.sh index 541617601..072aa2be4 100755 --- a/scripts/release_scripts/run_macaron.sh +++ b/scripts/release_scripts/run_macaron.sh @@ -584,6 +584,7 @@ else fi fi +# Force docker to use linux/amd64 platform in order to make docker use emulation on ARM host platforms. docker run \ --platform=linux/amd64 \ --network=host \