Closed npagare closed 2 years ago
I believe this error is coming from the line 15 of the src/microsoft.health.dicom.web/Dockerfile
FROM mcr.microsoft.com/dotnet/sdk:6.0.102-alpine3.14@sha256:8d15f73dcd72485cc89e59cf0fa2e97ef016c4500164dd26b71cea6d532b8134 AS build
Hi @IoTFier, can you validate which .NET SDKs you have installed on your environment?
Hi @jovinson-ms - listed below as requested -
PM> dotnet --list-sdks
5.0.405 [C:\Program Files\dotnet\sdk] 6.0.200 [C:\Program Files\dotnet\sdk]
Hi @IoTFier, you're right that the image was not updated. It is updated in the latest main, and I verified that the Docker compose project builds and launches successfully from within VS 2022. However, running docker build
from the terminal fails on some formatting warnings that are ignored by the repo .editorconfig file. We'll look into that issue.
Hi @jovinson-ms, how are you? Any input on the terminal error when running docker build? Thank you.
@IoTFier - As discussed in #1460, please retry using the docker composition. There may be transient connection issues when debugging through Visual Studio that I also need to file with the docker-compose tooling team, as the container is configured to restart while the SQL server is starting up.
Hey @IoTFier, as mentioned in the other issue, please re-open or file a new issue if this issue persists.
Describe the bug Local docker image building via docker compose is failing within VS 2022 (VS 17.1.0) | Win 11 Pro 64 OS Build 22557.1
To Reproduce Steps to reproduce the behavior:
Expected behavior Docker images to be built, deployed in the local docker desktop for windows; after than relevant containers up and running
Actual behavior Docker compose fails to build the solution. See below the terminal output
docker build -f src/microsoft.health.dicom.web/Dockerfile -t microsoft.health.dicom.web . [+] Building 6.1s (13/15) => [internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 1.59kB 0.0s => [internal] load .dockerignore 0.1s => => transferring context: 483B 0.0s => [internal] load metadata for mcr.microsoft.com/dotnet/sdk:6.0.102-alpine3.14@sha256:8d15f73dcd72485cc89e59cf0fa2e97ef016c4500164dd26b71cea6d532b8134 0.0s => [internal] load metadata for mcr.microsoft.com/dotnet/aspnet:6.0.2-alpine3.14@sha256:7f9385ad945d06b35bc93b3d91a2be3e65a921ff0c872f6982b01b27088c4149 0.0s => [runtime 1/2] FROM mcr.microsoft.com/dotnet/aspnet:6.0.2-alpine3.14@sha256:7f9385ad945d06b35bc93b3d91a2be3e65a921ff0c872f6982b01b27088c4149 0.0s => [internal] load build context 5.4s => => transferring context: 33.32MB 5.4s => [build 1/5] FROM mcr.microsoft.com/dotnet/sdk:6.0.102-alpine3.14@sha256:8d15f73dcd72485cc89e59cf0fa2e97ef016c4500164dd26b71cea6d532b8134 0.0s => CACHED [runtime 2/2] RUN set -x && apk add --no-cache icu-libs && addgroup nonroot && adduser -S -D -H -s /sbin/nologin -G nonroot -g nonroot nonroot 0.0s => [dicom-server 1/2] WORKDIR /app 0.1s => CACHED [build 2/5] WORKDIR /dicom-server 0.0s => CACHED [build 3/5] COPY . . 0.0s => [build 4/5] WORKDIR /dicom-server/src/Microsoft.Health.Dicom.Web 0.1s => ERROR [build 5/5] RUN dotnet build "Microsoft.Health.Dicom.Web.csproj" -c Release -p:ContinuousIntegrationBuild=false -warnaserror 0.4s => ERROR [build 5/5] RUN dotnet build "Microsoft.Health.Dicom.Web.csproj" -c Release -p:ContinuousIntegrationBuild=false -warnaserror 0.4s