-
Notifications
You must be signed in to change notification settings - Fork 69
Support Alpine Linux #833
Comments
SQLLitePCL.raw seems to be ready. libuv-package task is assigned to @natemcmaster. @glennc You had some concerns about this. Could you elaborate? Tentatively putting this in the milestone so that we don't lose track of it. |
I believe @bricelam is currently assigned to pull in a new SQLitePCL.raw package for a separate reason. We can use dotnet/efcore#10724 to track that update. |
I've been poking at this for the last few days. The biggest challenge to implementing this at the moment is crossgen-ing the shared framework. This is difficult because
So, options:
|
How are they doing it for MS.NETCore.App? |
As far as I can tell, they are able to run the entire build inside an Alpine container. It's possible they are using a version of MSbuild that doesn't have this RAR bug: dotnet/msbuild#3066 or that they don't compile any .csproj files in their build (that seems unlikely) |
I'm going to mark this as blocked for now on dotnet/msbuild#3066. It seems like dotnet/msbuild#3066 is critical enough (you can't even compile |
Unblocked. Found workarounds for now. It turns out MSBuild does not like .NET Core's invariant mode on Alpine :(. That can be worked around by installing libicu in the docker container. |
@natemcmaster will that be in the .NET image as well, or just ours? |
For now, it's a workaround so we can build the shared framework. It may not be necessary to use the shared framework. Setting invariant mode by default in the microsoft/aspnetcore docker image is a separate question we should address with Rich, Michael, and Glenn. At the moment, I'm inclined to give invariant mode a shot so we can figure out what the problems will be. But it may not be a sensible default for customers. |
So, I looked at this myself. To disable invariant mode, a users needs to add this to their dockerfile.
|
Nightly builds for Alpine should be available on Docker Hub soon. aspnet/aspnet-docker#390 Closing as remaining work listed in item description was punted to 2.2.0. Using aspnet/libuv-package#23 to track that. |
All of our native dependencies need to also be updated to support musl instead of glibc.
We also need to generate an aspnetcore-runtime tarball for Alpine.
Upgrade libuvDeferred until 2.2. See Support Alpine linux libuv-package#23The text was updated successfully, but these errors were encountered: