-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add instructions for Mac Apple Silicon
Fixes #261
- Loading branch information
esilvaju
committed
Oct 26, 2023
1 parent
17a7583
commit 5cdce71
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
id: setting_up_mac_apple_silicon | ||
title: Setting up a Rucio Developer environment on Mac with Apple Silicon | ||
--- | ||
|
||
## Setting up a Rucio Developer environment on Mac with Apple Silicon | ||
|
||
Currently Rucio packages and containers are only available for x86_64 architeture only. | ||
|
||
But a Mac equipped with Apple Silicon can execute code compiled for the x86_64 instruction set via a translation mechanism known as [Rosetta 2](https://support.apple.com/en-gb/guide/security/secebb113be1/web). | ||
|
||
- To install Rosetta 2 run: | ||
|
||
/usr/sbin/softwareupdate --install-rosetta | ||
|
||
This will initiate the Rosetta installer, and you will need to consent to a license agreement. | ||
|
||
Make sure that [docker desktop](https://docs.docker.com/desktop/install/mac-install/) is installed and updated. | ||
|
||
## Docker environment | ||
|
||
In order to force docker to run commands with platform **linux/amd64** instead of **linux/arm64** by default on macOS Apple Silicon, you have two options: | ||
|
||
Set Docker default plataform to linux/amd64: | ||
|
||
export DOCKER_DEFAULT_PLATFORM=linux/amd64 | ||
|
||
Or run it as part of the command a single time: | ||
|
||
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose -f <docker-compose-file.yml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters