libgit2 / libgit2/libgit2sharp
Docker Alpine container exit code 139
Personne n'a encore pris cette issue.
- Langage dominant
- C#
- Étoiles
- 3.5k
- Forks
- 925
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Reproduction steps
I'm running this Dockerfile with a project that uses libgit2sharp.
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine as base
EXPOSE 80
VOLUME /etc/nginx
VOLUME /etc/ssl
VOLUME /myproject
ADD tools/ssl/myproject* /etc/ssl/
# Install git.
RUN apk update && apk upgrade && \
apk add --no-cache git openssh nano
# Build WebSite.
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build
# Install nodejs.
RUN apk update && apk upgrade && \
apk add --no-cache npm
# Copy everything and publish app
WORKDIR /src
COPY ./src/. .
WORKDIR /src/MyProject/WebSite
RUN dotnet publish -c release -o /app
# Final stage/image
FROM base as final
WORKDIR /app
COPY --from=build /app ./
ENTRYPOINT ["dotnet", "MyProject.WebSite.dll"]
Expected behavior
No crash.
Actual behavior
Docker container exits with code 139. There is nothing being logged from .NET. try/catch is not handling anything. There is no information in docker info. There are no logs in docker itself. I have absolutely no idea why this is crashing.
I'm using this Dockerfile for debugging in Visual Studio.
# This dockerfile is used for debugging in Visual Studio.
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine
EXPOSE 80
VOLUME /etc/nginx
VOLUME /etc/ssl
VOLUME /myproject
RUN apk update && \
apk add --no-cache nodejs npm git openssh
ADD keys/. /root/.ssh/
RUN chmod 600 /root/.ssh/*
Everything works fine here. It's running in the same container OS. The only difference is everything is built inside the container for the image, whereas debugging everything is built then copied in.
I don't know how to figure out what's going wrong at this point.
Version of LibGit2Sharp (release number or SHA1)
0.27.0.-preview-0034
Operating system(s) tested; .NET runtime tested
Docker container mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par reproduire l’échec avec le Dockerfile multi-étapes et le Dockerfile de débogage Visual Studio présentés dans l’issue, en comparant leurs étapes de build et de copie. Examinez le point d’entrée dotnet MyProject.WebSite.dll et le comportement exit-139 du conteneur ; le travail est terminé lorsque la cause du crash natif a été identifiée et qu’un fix ou workaround confirmé a été documenté.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp, docker
- Domaine
- devops
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100