[buildpacks] build dotnet-amd64 on arm64 machine
Open
@waliMSFT is already working on this.
Since Sep 19, 2023.
buildpack
enhancement
- Dominant language
- C#
- Stars
- 881
- Forks
- 195
- Avg merge
- 20h 13m
- Merged PRs (30d)
- 13
Description
Bug Report
Currently, pack doesn't support specific platform targeting. However, it should still be possible to produce an amd64 image on an arm64 machine.
Current behavior
On M1 Mac, with dotnet and pack installed:
dotnet new web -o reprocd repropack build --builder "mcr.microsoft.com/oryx/builder:debian-buster-20230830.1" myimg
currently fails (dotnet restore hangs / eventually fails).
This is likely due to dotnet not supporting QEMU emulation.
Solution context
In .NET 8 (introduced -a <ARCH> flag), there should be a path to allow this, which involves using --platform using a Multiplatform-tagged image, and specify -a <ARCH> (.NET 8) or -rid (.NET 7):
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.