Summary

In this session, Frank is finishing the “Dockerization” of the Web API [MyClippings-Parser(https://github.com/FBoucher/MyClippings-Parser).

The Goal is to build and execute the unit test with-in Docker from an Azure Pipeline. If the build and all the unit tests pass we push the image to Docker Hub.

Replay

Goals

  • Run test of MyClippings-Parser in containers
  • Run test of MyClippings-Parser in containers from Azure Pipeline
  • Push image to Docker Hub from Azure Pipeline

ToDos

  • Change name of test project from MyClipping-Parser.Tests.csproj to MyClippings-Parser.Tests.csproj
  • Fix folders name

  • Add Documentation on the Docker Hub
  • Add Documentation on Git
  • Add on Git a how-to use it
  • Extract the dotnet /docker logs for the Azure Pipeline

Cheers

Streams Notes/ Snipets/ Shared urls

  • docker build –rm -t myclippings-parser:v1 .

References

  • https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/docker?view=azure-devops#example
  • https://techblog.dorogin.com/running-and-debugging-net-core-unit-tests-inside-docker-containers-48476eda2d2a