How to deploy telerik reporting REST API(.NET Core 3.1) with docker container+kubernetes on Ubuntu Host OS

0 Answers 346 Views
.NET Core
Shameem
Top achievements
Rank 1
Shameem asked on 12 Dec 2021, 10:42 AM | edited on 12 Dec 2021, 10:57 AM

This is my host os details


NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"

 

This is my docker file


#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/dotnet/aspnet:3.1-bionic AS base
WORKDIR /app

RUN apt-get update \ 
    && apt-get install -y --allow-unauthenticated \ 
        libc6-dev \ 
        libgdiplus \ 
        libx11-dev \ 
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app
EXPOSE 80
EXPOSE 443
RUN ln -s /shared_storage /app/shared
ENV ASPNETCORE_URLS=http://+:80



FROM mcr.microsoft.com/dotnet/sdk:3.1-bionic AS build
WORKDIR /app
#COPY ["MyAPI/MyAPI.csproj", "MyAPI/"]
COPY . ./
RUN dotnet restore "MyAPI/MyAPI.csproj"
#RUN dotnet build "MyAPI.csproj" -c Release -o /app/build
#FROM build AS publish
RUN dotnet publish "MyAPI/MyAPI.csproj" -c Release -o out

FROM base AS final
WORKDIR /app  
COPY --from=build /app/out .
ENTRYPOINT ["dotnet", "MyAPI.dll"]

This docker builds my image without any issue but the problem is, when I am trying to access my report, I am getting


Unable to get report parameters.
An error has occurred.
Type: Telerik.Reporting.ReportSerialization.Current.ReportSerializable`1[Telerik.Reporting.Report]

 

 

 

NB: I have also tried with mcr.microsoft.com/dotnet/sdk:3.1.21-bionic 

but this image doesn't exist.

NB: On my development environment, I am using windows 10 and from my localhost I am able to generate the reports without any issue.

Neli
Telerik team
commented on 15 Dec 2021, 07:33 AM

Hi Shameem,

I noticed that the same topic was discussed in support thread #1545493. I would recommend continuing our communication there.

WoorimartDEV
Top achievements
Rank 1
Iron
Iron
commented on 05 Aug 2022, 05:34 AM

Hi, Neli

Could you give me a link [support thread #1545493] ? I think I faced same issue.

Neli
Telerik team
commented on 08 Aug 2022, 11:01 AM

Hi Doyeong,

This is a support thread and it is private. I noticed that the same topic was discussed in a few other threads. I would recommend keeping our communication in thread #1574974.

No answers yet. Maybe you can help?

Tags
.NET Core
Asked by
Shameem
Top achievements
Rank 1
Share this question
or