dotnet-buildtools-prereqs-docker icon indicating copy to clipboard operation
dotnet-buildtools-prereqs-docker copied to clipboard

Add Alpine 3.17 arm64v8 image

Open mattleibow opened this issue 1 year ago • 9 comments

mattleibow avatar Jul 08 '24 09:07 mattleibow

This will be used when I build Alpine things on my Apple Silicon Mac.

Right now, the 3.17 is old because I have some older things that I need to first fix and then I will update to a later version. One reason is that I am building and testing on 3.17 since that version of Alpine is still supported: https://learn.microsoft.com/en-us/dotnet/core/install/linux-alpine#supported-distributions

mattleibow avatar Jul 08 '24 18:07 mattleibow

Is this image going to be used in the official builds or CI?

jkotas avatar Jul 08 '24 19:07 jkotas

Also, for which .NET release is this targeting?

richlander avatar Jul 08 '24 20:07 richlander

This is for building official builds of SkiaSharp on CI. Since all the docker requests are requiring auth, I don't want to have to set up my own mirror.

The SkiaSharp binaries will work on net6 and net8 and on all the supported alpine versions.

mattleibow avatar Jul 09 '24 05:07 mattleibow

The following images are provided for that purpose and will provide better compatibility than Alpine 3.17.

https://github.com/dotnet/runtime/blob/main/docs/workflow/building/coreclr/linux-instructions.md#docker-images

richlander avatar Jul 09 '24 05:07 richlander

Ah. Those images are intended to be run on x64. We don't have a good solution for Arm64. Can you use AzDo for the actual building?

richlander avatar Jul 09 '24 05:07 richlander

I believe all the new macs coming to azdo are arm64. Not even sure apple is making x64 hardware anymore.

mattleibow avatar Jul 09 '24 08:07 mattleibow

Let me test this rootfs stuff, but still that only helps with CI builds and I am using Apple Silicon half the time so we need to maybe see what I can do. I am a total cross-compile on linux noob, so I am learning as I go :)

EDIT: I thought "let me pull this docker image and see" and then I realised the whole point of what I was doing was to get it to work on my arm64 machine. Let me try devbox... Do they support docker?

mattleibow avatar Jul 09 '24 09:07 mattleibow

Why do you need to use Mac hardware if you are building Alpine? Won't an Ubuntu VM work fine?

richlander avatar Jul 09 '24 14:07 richlander

Are you going to continue with this @mattleibow?

richlander avatar Aug 12 '24 19:08 richlander

This PR will need to be updated to respond to the following infra changes that were recently made:

  • https://github.com/dotnet/dotnet-buildtools-prereqs-docker/issues/1174
  • https://github.com/dotnet/dotnet-buildtools-prereqs-docker/issues/1169

MichaelSimons avatar Aug 15 '24 21:08 MichaelSimons

Closing due to inactivity. Feel free to re-open this or a new PR if this is still needed.

MichaelSimons avatar Aug 23 '24 19:08 MichaelSimons