Skip to content

Commit

Permalink
Merge branch 'main' into multi_ledger_write
Browse files Browse the repository at this point in the history
  • Loading branch information
shaangill025 committed Jul 25, 2023
2 parents 8ab6814 + 8b6c87f commit 8c86657
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/run_docker
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/bin/bash

# Set default platform to linux/amd64 when running on Arm based MAC since there are no arm based images available currently.
if [[ $OSTYPE == 'darwin'* ]]; then
architecture=$(uname -m)
if [[ "${architecture}" == 'arm'* ]] || [[ "${architecture}" == 'aarch'* ]]; then
export DOCKER_DEFAULT_PLATFORM=linux/amd64
fi
fi

cd "$(dirname "$0")" || exit 1
CONTAINER_RUNTIME="${CONTAINER_RUNTIME:-docker}"

Expand Down

0 comments on commit 8c86657

Please sign in to comment.