You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support debian 10, the default ms dotnetcore 3.0 sdk image #1725
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.
Reacted by Scott Mackay, xophp, Alexander Trauzzi and Lee
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/
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.
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.
Activity
bording commentedon Oct 15, 2019
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.
xophp commentedon Dec 10, 2019
Hello, does anybody know if libgit2sharp is working on Debian 10?
xophp commentedon Dec 11, 2019
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.
arturcic commentedon Mar 28, 2020
@bording any updates on this?
bording commentedon Mar 28, 2020
@arturcic See #1703 (comment)
gitfool commentedon Mar 30, 2020
Same problem with Ubuntu 20.04 (#1747), which is next LTS due soon. Fingers crossed you can unblock #1618.
atrauzzi commentedon Apr 8, 2020
Landing here from GitTools/GitVersion#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.
arturcic commentedon Apr 8, 2020
@atrauzzi it depends on #1618
atrauzzi commentedon Apr 8, 2020
Thanks @arturcic Is there any way people can install a backported/old version of the dependency that's failing in the interim?
bording commentedon Jan 26, 2021
FYI, the latest preview release should work on all distros.
danielgarner64 commentedon Jun 2, 2021
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.