Base solution for your next web application

Activities of "Suretys"

Azure SQL database. Not in a container, Thanks

Please see the attached error file.

We developed an Azure Kubernetes microservice solution and then built an ASP.NET Zero web UI. The microsoervices all run fine on the Azure Kubernetes cluster.

When we deployed our UI service using ASP.NET Zero with Docker to the Azure Kubernetes cluster we cannot connect to our database. This ASP.NET Zero code works on the local machine but we cannot figure out how to promote it to our Kubernetes Cluster with Docker.

Please help. We have been struggling with this for over a week. We love ASP.NET Zero but cannot figure this out.

Ed & Uday from the Suretys team

Hello alirizaadiyahsi,

Can you share dockerfile which is create an only api project image not angular project.

Thnaks

Hello,

i am using docker file to create image, we do not need build.ps file. need to only .net api is running in docker image. you can see my docker file.this file is in host project. image is not working server is not responding. give me 500 error " internal server error". when i call any api using swagger.

FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base WORKDIR /app EXPOSE 80 EXPOSE 443

FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build WORKDIR /src COPY ["src/Suretys.Portal.Web.Host/Suretys.Portal.Web.Host.csproj", "src/Suretys.Portal.Web.Host/"] COPY ["src/Suretys.Portal.Web.Core/Suretys.Portal.Web.Core.csproj", "src/Suretys.Portal.Web.Core/"] COPY ["src/Suretys.Portal.GraphQL/Suretys.Portal.GraphQL.csproj", "src/Suretys.Portal.GraphQL/"] COPY ["src/Suretys.Portal.Application.Shared/Suretys.Portal.Application.Shared.csproj", "src/Suretys.Portal.Application.Shared/"] COPY ["src/Suretys.Portal.Core.Shared/Suretys.Portal.Core.Shared.csproj", "src/Suretys.Portal.Core.Shared/"] COPY ["src/Suretys.Portal.Core/Suretys.Portal.Core.csproj", "src/Suretys.Portal.Core/"] COPY ["src/Suretys.Portal.EntityFrameworkCore/Suretys.Portal.EntityFrameworkCore.csproj", "src/Suretys.Portal.EntityFrameworkCore/"] COPY ["src/Suretys.Portal.Application/Suretys.Portal.Application.csproj", "src/Suretys.Portal.Application/"] RUN dotnet restore "src/Suretys.Portal.Web.Host/Suretys.Portal.Web.Host.csproj" COPY . . WORKDIR "/src/src/Suretys.Portal.Web.Host" RUN dotnet build "Suretys.Portal.Web.Host.csproj" -c Release -o /app/build

FROM build AS publish RUN dotnet publish "Suretys.Portal.Web.Host.csproj" -c Release -o /app/publish

FROM base AS final WORKDIR /app COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "Suretys.Portal.Web.Host.dll"]

Thanks

Showing 1 to 4 of 4 entries