Docker Images and Containers for ASP.NET Core by Wes Higbee, is a great introductory course on everything you need to know to get your .net core application running in a container. By the end of this course you will be able to build and run your application inside docker, as well as provide an optimized image for deployment. All of this is done through the command line and the use of dockerfiles, with a final section on Visual Studio’s built-in docker support. Learning all of the commands necessary to build and run an application in a container, gives you a better appreciation for what the built-in support is doing and how to troubleshoot and future problems.
Continue reading “Pluralsight Notes – Docker Images and Containers for ASP.NET Core”
Change Default Swagger Route in an ASP.Net Core Web Api
Introduction
Over the past few weeks I have been doing some work with ASP.Net Core Web Api project’s using swagger. The setup was pretty standard until the api’s needed to be deployed to staging and production environments. The web api’s are being hosted in docker containers behind a reverse proxy, the staging and production environments required a prefix route parameter for each api. This meant that the default url’s for the controllers and swagger would need to include a route prefix. To add a route prefix to swagger and swagger ui is a pretty quick code change. Continue reading “Change Default Swagger Route in an ASP.Net Core Web Api”