Skip to content

DevOps

Docker & .Net 4.8: An Endless Obstacle Course

The more complex an application becomes, the greater is the benefit of Docker. If everything runs in containers, we can use a tool like docker-compose and start all the parts with one single command. No need to install all the tools, services, and frameworks - just run docker-compose and the magic happens automatically. We can go from nothing to the full running application in a few minutes.

Since I saw the talk "Dev and Test Agility for your Database with Docker" by Julie Lerman at NDC Oslo 2019 I wanted to port her solution for .Net Core to the .Net Full Framework. How hard could it be? As it turns out, it is an awful lot of work and a few weeks ago Microsoft made it even harder.

Docker Disk Space Explosion and How to Clean It Up

At the spring cleaning of my computers, I noticed that one device I had nearly no disk space left. After removing old files and the usual suspects (like Windows updates) I found that Docker uses the most space.

While Docker Desktop for Windows showed me a disk usage of around 50 GB, TreeSize found 124 GB - far too much for the few containers that run on this machine. To clean-up the storage, I first tried the prune command to remove unused data:

StyleCop for .Net 5 Projects: Installation

When you work in a team it is of great importance that you all follow the same rules. Otherwise your turn a code base in a mess in no time. We settled for StyleCop because it allowed us to delegate the nitpicking of code formatting and code style to a tool that does it automatically at development time. That allows us to use the time in code reviews for the important parts.