Skip to content

[Preview 8] Build Razor Page Components Project 2.2 fails in Docker Container error : rzc discover exited with code 150. #13146

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

Closed
kdcllc opened this issue Aug 14, 2019 · 1 comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates question

Comments

@kdcllc
Copy link

kdcllc commented Aug 14, 2019

The following project builds inside VS.NET on a windows box with the version of AspNetCore=Version: 3.0.0-preview8-28405-07

<Project Sdk="Microsoft.NET.Sdk.Razor">

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <GenerateEmbeddedFilesManifest>True</GenerateEmbeddedFilesManifest>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Mvc" />
    <PackageReference Include="Microsoft.AspNetCore.StaticFiles" />
    <PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" />
  </ItemGroup>

  <ItemGroup>
    <EmbeddedResource Include="wwwroot\**\*" />
    <Content Update="**\*.cshtml" Pack="false" />
  </ItemGroup>
</Project>

In the docker container it fails with error : rzc discover exited with code 150.

Ended up installing DotNetCore 2.2 into docker container as follows:

FROM mcr.microsoft.com/dotnet/core/sdk:3.0.100-preview8-buster AS build

# Install .NET Core SDK
# https://github.com/aspnet/AspNetCore/issues/10833#issuecomment-499134467
ENV DOTNET_SDK_VERSION 2.2.401

RUN curl -SL --output dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-x64.tar.gz \
    && dotnet_sha512='08e1fcafa4f898c80ff5e88eeb40c7497b4f5651af3b8ec85f65a3daa2f1509a766d833477358d3ff83d179e014034ab0c48120847ef24736c8d1a5b67fec10b' \
    && echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
    && tar -zxf dotnet.tar.gz -C /usr/share/dotnet \
    && rm dotnet.tar.gz
@mkArtakMSFT mkArtakMSFT added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Aug 14, 2019
@mkArtakMSFT
Copy link
Member

Thank you for your feedback.
We're closing this issue as the behavior discussed is by design.
Razor SDK requires the related runtime to be installed.

@kdcllc kdcllc changed the title [Preview 8] Build Razor Page Components Project 2.2 fails in Docker Container [Preview 8] Build Razor Page Components Project 2.2 fails in Docker Container error : rzc discover exited with code 150. Aug 15, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Dec 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates question
Projects
None yet
Development

No branches or pull requests

2 participants