libgit2sharp icon indicating copy to clipboard operation
libgit2sharp copied to clipboard

Support debian 10, the default ms dotnetcore 3.0 sdk image

Open wwwlicious opened this issue 4 years ago • 11 comments

Are there any plans to support debian 10 which is the default dotnetcore 3.0 sdk image from microsoft?

wwwlicious avatar Oct 14 '19 21:10 wwwlicious

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.

bording avatar Oct 15 '19 18:10 bording

Hello, does anybody know if libgit2sharp is working on Debian 10?

xophp avatar Dec 10 '19 12:12 xophp

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.

xophp avatar Dec 11 '19 06:12 xophp

@bording any updates on this?

arturcic avatar Mar 28 '20 16:03 arturcic

@arturcic See https://github.com/libgit2/libgit2sharp/issues/1703#issuecomment-599136487

bording avatar Mar 28 '20 16:03 bording

Same problem with Ubuntu 20.04 (#1747), which is next LTS due soon. Fingers crossed you can unblock #1618.

gitfool avatar Mar 30 '20 18:03 gitfool

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 avatar Apr 08 '20 14:04 atrauzzi

@atrauzzi it depends on #1618

arturcic avatar Apr 08 '20 14:04 arturcic

Thanks @arturcic Is there any way people can install a backported/old version of the dependency that's failing in the interim?

atrauzzi avatar Apr 08 '20 14:04 atrauzzi

FYI, the latest preview release should work on all distros.

bording avatar Jan 26 '21 04:01 bording

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.

danielgarner64 avatar Jun 02 '21 00:06 danielgarner64