geodynamics / Rayleigh

Rayleigh: Pseudo-spectral MHD
GNU General Public License v3.0
61 stars 48 forks source link

Push to ghcr and build for Apple Silicon #477

Closed gassmoeller closed 5 months ago

gassmoeller commented 1 year ago

This PR makes two changes to building the rayleigh docker container:

  1. It builds a multi architecture image for amd64 (all usual systems) and arm64 (closer to current Apple systems). Using docker will automatically download the best image for the current system.
  2. It pushes the image not just to docker hub, but also to Github Container Registry (ghcr.io). This just provides the image in another location. Docker Hub has been a bit unreliable in the past and we are adding GHCR as back up for CIG packages.
gassmoeller commented 1 year ago

This addresses one of the limitations of #465.

gassmoeller commented 1 year ago

@cianwilson after this is merged, can you try the docker image again with your M1 machine and check if the speed improves?