libgit2sharp
libgit2sharp copied to clipboard
Support debian 10, the default ms dotnetcore 3.0 sdk image
Are there any plans to support debian 10 which is the default dotnetcore 3.0 sdk image from microsoft?
I don't have an ETA for you, but it is something I want to get working when I've got some free time to research/test the new distros that we need to support.
Hello, does anybody know if libgit2sharp is working on Debian 10?
Hi, I was able to answer my question by myself. It seems the Debian version, which is used by the Microsoft Docker templates by default, is not supported. But Ubuntu 18.04 is. So all you have to do is to replace mcr.microsoft.com/dotnet/core/aspnet:3.0-buster with mcr.microsoft.com/dotnet/core/aspnet:3.0-bionic and mcr.microsoft.com/dotnet/core/sdk:3.0-buster with mcr.microsoft.com/dotnet/core/sdk:3.0-bionic in your Docker file. Then, quite at the end of the docker file (after the binaries are copied from the build image to the runtime image) add the following line: RUN cp /app/runtimes/ubuntu.18.04-x64/native/* /app/
With this changes it was able to get it running.
@bording any updates on this?
@arturcic See https://github.com/libgit2/libgit2sharp/issues/1703#issuecomment-599136487
Same problem with Ubuntu 20.04 (#1747), which is next LTS due soon. Fingers crossed you can unblock #1618.
Landing here from https://github.com/GitTools/GitVersion/issues/2204....
Would love to be able to see support not just for 20.04 coming up, but possibly also 19.10 so that we aren't in any situations where this library is being blocked by or is blocking others.
@atrauzzi it depends on #1618
Thanks @arturcic Is there any way people can install a backported/old version of the dependency that's failing in the interim?
FYI, the latest preview release should work on all distros.
For anyone using aspnet 5.0 aspnet, by default your docker conatiner is still using Debian 10 by default. To fix this you can change the following line in your Dockerfile from: FROM mcr.microsoft.com/dotnet/aspnet:5.0 to: FROM mcr.microsoft.com/dotnet/aspnet:5.0-alpine3.12 AS base
This will use the alpine linux version of aspnet which has precompiled binaries in the lib2gitsharp.NativeBinaries Nuget Package.