Locking manifests in Azure Container Registry

Paul Hatcher
Posted in DevOps, Azure, ACR
So a consequence of wanting to purge images from your container registry is sometimes you need to keep some of them. One example is that in regulated industries you must be able to produce software that was deployed to production for audit/legal purposes, so if you are purging images that are over 3 months old you might have an issue. You can update an image so that it can’t be overridden or deleted via the az acr repository update command e.

Purging manifests from Azure Container Registry

Paul Hatcher
Posted in DevOps, Azure, ACR
One housekeeping task if you are producing docker images is clearing your container registry of old images. I’ve been particularly bad at this and had also made some mistakes such as publishing PR images and images produced via our auto-patching runs, leading to the ACR size being >1.2Tb (ouch!). There are some features introduced by acr auto purge, but I found an issue since my images typically have three tags…

Wikiexport 0.3

Paul Hatcher
Posted in DevOps, Azure
Just pushed a new version of WikiExport with a couple of useful features Change titleFormat to have explicit {project}/{title} macros Support for .attachments in non-root folder - provided by @ricfre The first is just a simplification since it’s more intentional to use named values rather than {0} etc, and we can also automatically determine projectInTitle from the titleFormat. The second one allows support for code wikis and the image path not being in the root of the repository e.

Project Documentation from Azure DevOps Wikis

Paul Hatcher
Posted in DevOps, Azure
One perennial issue when developing software is how to keep documentation up to date. For detailed documentation such as APIs this has become a lot easier in recent years with capabilities such as Swashbuckle being able to pick up annotations directly from the code. The principal of keeping your documentation as close to the code as possible means that development teams are more likely to keep it up to date and relevant to the actual behaviour - presuming you are have a good definition of done and are performing code reviews 😉.

Moved Blog to Hugo

Paul Hatcher
I need to resume my blog to talk about some projects I’ve been working on and I’ve migrated over to using Hugo as the blogging platform from my old MiniBlog based solution. The main reasons are ease of writing since the content typically has some code in it, and with Hugo I can write in Markdown. Went relatively easily since I didn’t have that many posts to fix but did find some that had gone missing 😄.