NOAA-GSL / ExascaleWorkflowSandbox

Other
2 stars 2 forks source link

Docker container reports errors on Apple silicon #35

Closed christopherwharrop-noaa closed 7 months ago

christopherwharrop-noaa commented 11 months ago

The current docker-compose configuration contains a bug. When test containers are launched on Mac laptops using the new Apple chips, the following error is emitted:

The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

The docker-compose.yml file likely needs the following added for each service listed (see here)

platform: linux/amd64

Since Docker only works on Linux systems for Github Actions, this is not currently testable in the automated CI. However, it can be verified locally by a user running Docker Desktop on a Mac with a M1 or M2 processor.

christopherwharrop-noaa commented 11 months ago

@NaureenBharwaniNOAA - Please take a look at this and see if the proposed solution addresses the problem.

NaureenBharwaniNOAA commented 11 months ago

@christopherwharrop-noaa Looking at the article linked, I think this would be a useful starting point and trial to see if this proposed solution could fix our issue.

christopherwharrop-noaa commented 8 months ago

This issue requires use of an ARM machine for building the containers natively. Until access to ARM is obtained for CI processing, this issue cannot be fixed.

christopherwharrop-noaa commented 7 months ago

This issue was addressed by #66