Skip to content

Commit

Permalink
Merge pull request #765 from nodlesh/auto-detect-amd64
Browse files Browse the repository at this point in the history
auto-detect ARM based MACs and set Docker Platform
  • Loading branch information
WadeBarnes authored Jan 29, 2024
2 parents 8a9d853 + 5b17fe4 commit da3a622
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions manage
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ if [ "${PWD_HOST_FQDN}" != "" ]; then
fi
fi

# 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

# ========================================================================================================
# Check Docker Compose
# --------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit da3a622

Please sign in to comment.