MIROSLAV POPOVIĆ Docker i ASP.NET Core @miroslavpopovic https://miroslavpopovic.com Docker i ASP.NET Core
Introduction
What are containers? A stand-alone, executable software packages Encapsulates the app and dependencies Share the same OS kernel Isolate software from surroundings Build once, run everywhere Shipping containers paradigm
So, like Virtual Machines? No, more lightweight Runs as a process Smaller Faster
Image vs. container images / layers container machine Docker daemon Scratch : System.Object Debian : Scratch Php : Debian WordPress : Php machine Docker daemon scratch debian:stretch-slim php:7.2-apache wordpress:latest new WordPress() WordPress instance > docker run
Docker Open-Source Linux and Windows based Easy to use Fast Docker Hub Modularity and scalability Docker compose
ASP.NET Core Rewritten from scratch Open-source High performance Multi-platform
Demo
Docker Swarm / Kubernetes
Closing up
Scenarios Running Linux software on Windows Using tools without installation Integration testing - https://jeremydmiller.com/2018/08/27/a-way-to-use-docker-for-integration- tests/ Continuous integration Continuous delivery AWS or Azure deployment …
Problems Most of them are not Docker related Edge versions Caching … Community
Further research Docs Docker for .NET Developers by Steve Gordon https://docs.docker.com/ .NET Core sample - https://docs.docker.com/engine/examples/dotnetcore/ ASP.NET Core docs - https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/docker/ Docker for .NET Developers by Steve Gordon https://www.stevejgordon.co.uk/docker-dotnet-developers-part-1 Quick intro to Docker and Docker Compose by João Antunes https://blog.codingmilitia.com/2018/01/31/quick-intro-to-docker-and-docker-compose- angular-aspnetcore-postgres-app ASP.NET Core 2.0 in Docker by Mark Rendle https://vimeo.com/233915427 Pluralsight courses https://app.pluralsight.com/library/courses/deployment-pipeline-aspdotnet-core-docker/ Sample https://github.com/miroslavpopovic/docker-aspnetcore-sample-1
@miroslavpopovic https://miroslavpopovic.com