-
Notifications
You must be signed in to change notification settings - Fork 888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to craft a Dockerfile to work with lib2gitsharp? #1825
Comments
I have cross-posted this on SO: https://stackoverflow.com/questions/63361510/how-to-craft-a-dockerfile-to-work-with-lib2gitsharp Feel free to close this if you feel SO is a more appropriate forum for my question. |
Closing per the information / solution discovered in: #1725, which I have also updated my SO question to reflect. |
Hello @SeanKilleen. The SO question is gone. Also the solution in #1725 gives a few commands but doesn't link it all together. Do you have a Dockerfile from start to finish that works that you can post here? Thanks! |
I'm also really struggling to find a dotnet 5 image that will run this, does anyone have any advice for how to go about it please? |
@ahickey-sfdc @csurfleet sorry, just getting back to this. Apparently my SO question was hidden for not being focused enough. 🙄 Question I'd postedGoalI'm in the process of attempting to use lib2gitsharp with a .NET core 3.1 app that I will be hosting in a container. I am currently using It makes sense to me that I will need to ensure that the container image has the appropriate libgit2 version in place to be able to call it. What I've Tried so Far
Questions
What I'd Answered at the time:In this case, it appears the issue is that by default, .NET Core containers use the Debian 10 support in libgit2sharp currently has some issues, and there is an issue open to address this: #1725 I am not constrained on which container OS to use, so I was able to follow the directions in that thread and move to using the |
Per the above, @csurfleet I think if you're able to base it off of an Here's the container file I'd gotten working with it (sadly, things stagnated a bit there, but I may pick them up again): https://github.com/excellalabs/konmaripo/blob/main/src/Konmaripo.Web/Dockerfile |
I love the idea of this project and what it enables. Thank you for it!
I'm in the process of attempting to use this library with a .NET core 3.1 web app that I will be hosting in a container.
I am currently using
mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim
as the base container.It makes sense to me that I will need to ensure that the container image has the appropriate libgit2 version in place to be able to call it.
My questions are: what is the best way to determine this versioning? Can someone possibly assist me in identifying the appropriate OS variant to use in order to enable this scenario? Is there a known process to modify a Dockerfile to install the appropriate version?
If this information exists anywhere, even if it's scattered, let me know and I will attempt to format it for consumption in the wiki.
Thanks!
The text was updated successfully, but these errors were encountered: