Building, Debugging & Deploying Containerized Building, Debugging & Deploying Containerized .NET Apps Jeremy Cronan (Alliance Safety Council)
What are Containers? Containers are a method of operating system virtualization that allow you to run an application and its dependencies in resource-isolated processes Slice up the OS to run multiple apps on a single OS Typically you run one application/service per container Container and apps share lifecycle Every container has an isolated view and gets Own root directory eth0 network interface it’s own PID0 Kernel features to accomplish this: cgroups: limiting what you can use namespaces: limiting what you can view Cannot mix operating systems
Cargo Transport Pre-1960s
Cargo Transport with Containers
Docker is Shipping Container for Code
What can be in containers .NET Core, .NET Framework ASP.NET, WCF, Console Linux, Windows Alpine, Debian, and Ubuntu images Single Dockerfile, Kubernetes, Docker Compose
Adding/Debugging Container in VS DEMO
2 Projects in Containers Can 2 Projects in a Solution be in a single container? How do containers interact with ease?
Docker Compose Kubernetes (AWS or Azure) Orchestration Docker Compose Kubernetes (AWS or Azure) Publish to many targets: App Service, Azure Container Registry, Azure Dev Spaces & AKS, AWS ECS, AWS EKS, DockerHub, custom..
Orchestration DEMO
Summary Install Visual Studio 2019 with Web, Azure or Container workloads Build and debug containers in VS Learn more: https://docs.microsoft.com/en-us/visualstudio/containers
Thank You Jeremy Cronan @crobarian jjcronan@gmail.com Download sample code at SQLSatbr.com