Category : .net-5

I’m trying to create a sharedsettings.json file that will be copied to all docker containers in a microservice based solution. I’ve created a link in each project to the file and set it to copy to output directory. Each .csproj file contains <ItemGroup> <Content Include="..sharedsettings.json" Link="sharedsettings.json"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> </ItemGroup> When I try to access the ..

Read more

I’m trying to dockerize isolated process .net5.0 Azure Function. But I’m getting errors. All my projects target net5.0. My Dockerfile looks like this: FROM mcr.microsoft.com/azure-functions/dotnet-isolated:3.0-dotnet-isolated5.0-core-tools AS build WORKDIR /app COPY . ./ RUN dotnet publish My.Functions -c Release -o out -r linux-x64 FROM mcr.microsoft.com/azure-functions/dotnet-isolated:3.0 ENV AzureWebJobsScriptRoot=/home/site/wwwroot ENV AzureFunctionsJobHost__Logging__Console__IsEnabled=true ENV FUNCTIONS_WORKER_RUNTIME=dotnet-isolated COPY –from=build /app/out /home/site/wwwroot The ..

Read more

I am using MySQL with .net5 web API in docker. I am using docker on Window10 Home WSL2. My Docker-compose and compose.override file like below docker-compose.yml version: ‘3.4’ services: userdb: image: mysql portainer: image: portainer/portainer-ce usermanagement.api: image: ${DOCKER_REGISTRY-}usermanagementapi build: context: . dockerfile: Services/User/User.API/Dockerfile volumes: mysql_data: portainer_data: docker-compose.override.yml version: ‘3.4’ services: userdb: container_name: userdb restart: always ..

Read more

This is the scenario: We have a web platform with multiple applications created with dotnet 5. Each application has an individual solution in Visual Studio and an individual GitHub repository. Each repository contains a single Web project, and each solution references one or more projects stored in another repository. This repository is called Commons and ..

Read more

Im trying to use the following lib to automatically build an image and run it as a container: https://github.com/dotnet/Docker.DotNet Basically its just a wrapper of the Docker Engine API: https://docs.docker.com/engine/api/v1.41/#operation/ImageBuild However, as stated by the Docker engine API documentation for the "build an image"-section, it expects the request body to be a tar-archive.. but I ..

Read more