Jacob
Jacob
CC#
Created by Jacob on 1/21/2025 in #help
Swagger CLI when build multi-platform
I am attempting to build using a RID linux-arm64 on a machine that is linux-x64. In a simple console app this works fine however in a project that is using swagger cli, specifically dotnet swagger tofile --output I get an error "The assembly architecture is not compatible with the current process architecture." I am assuming that this is because the assembly is built targeting linux-arm64 but the swagger cli is running using the host architecture which is linux-x64. How do I get around this?
1 replies
CC#
Created by Jacob on 12/11/2024 in #help
Multi-rid restore/build
I am looking into publishing for both arm/amd64 and wonder if doing a multi-rid restore/build/test/publish is possible and if so how?
1 replies
CC#
Created by Jacob on 10/30/2023 in #help
❔ Docker Build multiple microservices from a monorepo
I am looking for some examples, samples, guidance on the most efficient way to do a docker build in a monorepo with multiple microservices. Currently our process involves a build-and-test docker file that, as you might guess, builds the code and runs all the commit stage tests. Then there are numerous dockerfiles for each of the microservices that use a multistage build referencing the final stage of the build-and-test dockerfile. This works, albeit slowly. I'm wondering if there is a better way? Any examples or samples you could point to would be really helpful.
23 replies
CC#
Created by Jacob on 10/12/2023 in #help
❔ ✅ Certificates in Docker Build
So context: my team have a containerized build, Ie. dotnet restore/build/test/publish in a docker file. Some integration tests where added that spin up an API project and Use HttpClient to hit the endpoints. This all works outside of docker but running the build in a container produces an error, Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found or is out of date. Ok, makes sense as the SDK container mcr.microsoft.com/dotnet/sdk:6.0-focal has no dev cert. The question is how do I get a valid cert in the container so tests can use it? Any ideas?
32 replies