jbossdemocentral / service-interconnect-sandbox-demo

3 stars 4 forks source link

M1 Mac not working with Podman #2

Open dudash opened 1 year ago

dudash commented 1 year ago

I was trying this on a M1 macbookpro and running into the following error when creating the gateway:

🕙 17:23:05 ➜ skupper gateway init --config simple-podman.yaml --type podman
Error: Failed to start gateway as container: WARNING: image platform (linux/amd64) does not match the expected platform (linux/arm64)
Error: statfs /Users/jdudash/.local/share/skupper/cluster/jdudash-mac-jdudash: no such file or directory

AFAICT skupper doesn't currently provide arm64 container images. See here: https://github.com/skupperproject/skupper/issues/884

The instructions in this demo repo seem to imply it should work because there are instructions to deploy the database using arm docker run --name database --detach --rm -p 5432:5432 quay.io/redhatintegration/patient-portal-database-arm64

Am I messing something up or missing something? Thanks.

hguerrero commented 1 year ago

Hello, @dudash.

It appears to be something unique to Podman. If you use Docker Desktop on M2 MB, it works (but with a warning). We will look into it further.

image
hguerrero commented 1 year ago

Following,

The 'statfs' issue appears to be caused by podman not correctly mounting the filesystems into the podman machine[1], which you should be able to resolve by running podman machine stop && podman machine start.

However, you will encounter another issue with lsetxattr because Mac does not support it[2] and podman does not automatically remove it from the call as Docker does.

Skupper has an issue with this. https://github.com/skupperproject/skupper/issues/1195

[1] https://stackoverflow.com/a/76614072 [2] https://github.com/containers/podman-compose/issues/509#issuecomment-1162988103