Skip to content

Commit 86c56e4

Browse files
docs: add macOS Apple Silicon Podman setup instructions
Add a dedicated section for configuring Podman on Apple Silicon Macs with Rosetta emulation. This is required because the aro-installer image is only built for amd64, and developers need to set up Rosetta and the correct Podman socket path for local RP development. Relates: ARO-25612
1 parent 644c12b commit 86c56e4

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

docs/prepare-your-dev-environment.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,59 @@ The containerized development environment requires only these locally installed
184184
sudo touch /etc/containers/nodocker
185185
```
186186
187+
#### Configure Podman on macOS (Apple Silicon)
188+
189+
> [!IMPORTANT]
190+
> On Apple Silicon Macs (M1/M2/M3/M4), the `aro-installer` container image is only built for `amd64`. You must configure Podman with Rosetta emulation to run amd64 containers.
191+
192+
1. Install Podman
193+
194+
```sh
195+
brew install podman
196+
```
197+
198+
2. Initialize the Podman machine with Rosetta support and sufficient resources
199+
200+
```sh
201+
podman machine init --cpus 4 --memory 5000 --rootful --rosetta
202+
podman machine start
203+
```
204+
205+
> [!NOTE]
206+
> If you already have a Podman machine without Rosetta, recreate it:
207+
>
208+
> ```sh
209+
> podman machine stop
210+
> podman machine rm
211+
> podman machine init --cpus 4 --memory 5000 --rootful --rosetta
212+
> podman machine start
213+
> ```
214+
215+
3. Set the Podman socket environment variable
216+
217+
The socket path varies by system. Find yours with:
218+
219+
```sh
220+
podman machine inspect --format '{{.ConnectionInfo.PodmanSocket.Path}}'
221+
```
222+
223+
Then add to your shell RC file or `env` file:
224+
225+
```sh
226+
export ARO_PODMAN_SOCKET="unix://$(podman machine inspect --format '{{.ConnectionInfo.PodmanSocket.Path}}')"
227+
```
228+
229+
4. Verify the setup
230+
231+
```sh
232+
# Confirm Rosetta is enabled
233+
podman machine inspect | grep -i rosetta
234+
235+
# Test pulling an amd64 image
236+
podman pull --platform linux/amd64 alpine
237+
podman run --rm alpine uname -m # Should output: x86_64
238+
```
239+
187240
### Install GolangCI Lint
188241
189242
1. Find latest version [here](https://github.com/golangci/golangci-lint/releases)

0 commit comments

Comments
 (0)