Access this repository: http://bit.ly/aspnetcoredocker
This repository contains source code for two courses:
- Docker Images and Containers for ASP.NET Core
- The starting point is pluralsight-images-start. Also master
- The stopping point is pluralsight-images-end
- Building a Deployment Pipeline for ASP.NET Core with Docker
- The starting point is pluralsight-pipeline-start
- The stopping point is pluralsight-pipeline-end
- The
docker configexample: docker-config-prodappsettings - The NGINX reverse proxy example: nginx-proxy
- The performance testing environment: perf
- The course branch is what I used throughout both courses as a single branch of all changes minus the above three one-off branches at the end of the second course.
- Announcements related to this course, since publishing:
- During the previews of .NET Core 2.0, Debian Stretch was released. Both Stretch (v9) and Jessie (v8) images are available. As of .NET Core 2.0 RTM Stretch is now used in the multi-architecture tags. And, Stretch is now the default for the lifespan of .NET Core 2.x releases. dotnet/announcements#16
- microsoft/dotnet & microsoft/dotnet-nightly image tags are now visually grouped by OS & CPU architecture dotnet/announcements#27
- dotnet restore is now an implicit command, i.e. when you run dotnet build it will perform a restore if needed. That said,
dotnet restoreis still worthwhile to explicitly control when package restore occurs, for example to optimize the speed of building images as discussed in the courses. dotnet/announcements#23
I will be updating the above branches through .NET Core 2.0 RTM, here is what I'm updating:
preview1 to preview2 updates:
- Remove or update api/global.json to the appropriate 2.0 preview
- Update packages in api/api.csproj replace
2.0.0-preview1-finalwith2.0.0-preview2-final - Update
Microsoft.NET.Test.Sdkin tests/tests.csproj and integration/integration.csproj to15.3.0-preview-20170517-02for preview2 (optional) - Prior to 2.0 RTM, in
Dockerfilesyou might want to use tags that specify the exact preview version, i.e.microsoft/dotnet:2.0.0-preview1-sdkinstead ofmicrosoft/dotnet:2-sdk