Open valeria-tejada-incontact opened 3 years ago
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
Marking for team triage. Not sure who should look into this, it sounds like a build hang on ARM64.
@tommcdon is there someone available with an arm64 machine who can do an initial look for us?
@hoyosjs can point you to a machine, and might be able to help repo
@marcpopMSFT I've sent you the credentials. However I couldn't repro the issue:
@valeria-tejada-incontact, quick questions that might help us find a way to narrow this:
COPY . .
?
Describe the Bug
On our current solutions, we use dotnet build for arm64 architecture using sdk:3.1.402-bionic-arm64v8 image, this used to work properly until December 20th, after that date we experienced a return code 1.
Steps to Reproduce
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.402-bionic-arm64v8 AS devBase WORKDIR /src
FROM devBase AS build COPY . . RUN dotnet build "src/Test.sln" -c Release -o /app
FROM build AS publish RUN dotnet publish "src/Test.csproj" -c Release -o /app
FROM base AS final WORKDIR /app COPY --from=publish /app . ENTRYPOINT ["dotnet", "Test.dll"]`
Other Information
Usually execute this command take a few minutes but with the issue, it gets stuck around 30 min.
Output of
docker version
Docker version 19.03.13, build 4484c46d9d
Output of
docker info
`Step 1/14: FROM mcr.microsoft.com/dotnet/core/runtime:3.1.8-bionic-arm64v8 AS base 3.1.8-bionic-arm64v8: Pulling from dotnet/core/runtime c9ca07cb7eb0: Pull complete Digest: sha256:3cae85d41d0c2e73d04208d06989ca063f0479ac990c8a27c8485efda90f3955 Status: Downloaded newer image for mcr.microsoft.com/dotnet/core/runtime:3.1.8-bionic-arm64v8 ---> 2ca3cdd191f8 Step 2/14 : WORKDIR /app ---> Running in fe58a5b5c075 Removing intermediate container fe58a5b5c075 ---> 8a3b2d7cf50c Step 3/14 : EXPOSE 80 ---> Running in b0af7c98523c Removing intermediate container b0af7c98523c ---> 5def6c0843a9 Step 4/14 : FROM mcr.microsoft.com/dotnet/core/sdk:3.1.402-bionic-arm64v8 AS devBase 3.1.402-bionic-arm64v8: Pulling from dotnet/core/sdk 3aa6ae443a21: Pull complete Digest: sha256:46b85c71c3ca2820588681b729ebca2214de6f0d00cb8bf5f15b2faabde2e3f5 Status: Downloaded newer image for mcr.microsoft.com/dotnet/core/sdk:3.1.402-bionic-arm64v8 ---> 52d1ae94fea9 Step 5/14 : WORKDIR /src ---> Running in f3710b863c1e Removing intermediate container f3710b863c1e ---> ad904e47f38d Step 6/14 : FROM devBase AS build ---> ad904e47f38d Step 7/14 : COPY . . ---> b22d3c30380e Step 8/14 : RUN dotnet build "src/Test.sln" -c Release -o /app ---> Running in c45d0e620b12 Microsoft (R) Build Engine version 16.7.0+7fb82e5b2 for .NET Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore... Restored /src/Test/Test.csproj (in 9.52 sec).
Build succeeded. 0 Warning(s) 0 Error(s)
Time Elapsed 00:37:32.32 The command '/bin/sh -c dotnet build "src/Test.sln" -c Release -o /app' returned a non-zero code: 1`