microsoftgraph / microsoftgraph/msgraph-sdk-powershell

images won't work on ARM architecture CPUs (Mac M3)

Offen
#3,071 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

type:feature
Vorherrschende Sprache
C#
Sterne
898
Forks
230
Ø Merge
2 T. 5 Std.
Gemergte PRs (30 T.)
31

Beschreibung

Is your feature request related to a problem? Please describe the problem.

Hello,

Please consider to support to run on arm cpus, like Mac M3 / M4 ...

Currently, it refuses to run:

$ docker run --rm -it mcr.microsoft.com/microsoftgraph/powershell
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

However, I can run bash with the image, but if I run pwsh it fails with Segmentation fault

$ docker run --platform linux/amd64 --rm -it mcr.microsoft.com/microsoftgraph/powershell bash                                                                     
root@d960df434419:/# pwsh
PowerShell 7.4.2
Segmentation fault
root@d960df434419:/# pwsh-preview
PowerShell 7.4.2
Segmentation fault

I noticed this issue 1920 metioned the base powershell image doesn't support for arm. However, it now support - https://mcr.microsoft.com/en-us/artifact/mar/powershell

Describe the solution you'd like.

Please add arm support!!!

Additional context?

And FYI - The Azure powershell module works well on my mac:
https://mcr.microsoft.com/en-us/artifact/mar/azure-powershell/about

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginnen Sie damit, die Docker-Image-Definition des Repositorys und das darin referenzierte PowerShell-Basis-Image zu untersuchen, und vergleichen Sie sie anschließend mit den im Issue erwähnten ARM-unterstützenden PowerShell- und Azure-PowerShell-Images. Erledigt ist die Aufgabe, wenn das Microsoft-Graph-PowerShell-Image auf ARM64-Hosts ausgeführt wird und pwsh nicht mehr mit einem segmentation fault beendet wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
docker, powershell
Bereich
devops, infrastructure
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
20/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.