Last week I coached a team during a 3-day OpenHack. The team members were new to DevOps but they had incredible energy and we all learned quite a bit.
We used GitHub and Azure DevOps to create a blue/green deployment pipeline for a few APIs. Put some branch protection on Trunk including a pull request build / tests pipeline. We also used Azure Boards and GitHub issues to track work and bugs.
Good times. 🙂
Over the past two weeks I’ve been doing a lot more AKS studies, which included this excellent MS Learn content. It walks you through creating an well-featured AKS cluster, soup to nuts. You owe it to yourself to take a look.
But I’ve also been doing a lot of studying of the Microsoft Power Platform, specifically Power Apps, Power Automate, and Power Virtual Agents. No code, low code environment, which sounds nice and easy, but the learning curve has been larger than I expected. I recently found a bunch of YouTube videos that I’m working my way through.
Anyway, that’s been taking up a lot of my time. Soooooo, I decided to shift gears regarding this AKS project.
Miniblog is a nice engine, but all my content is currently at jimblizzard.wordpress.com. I didn’t want to have to try to migrate all my old posts into Miniblog, so I used the WordPress bitnami image and threw it into an AKS cluster, and pointed my old domain name snowstormlife.com at it. I then exported all my wordpress content from wordpress.com and imported it into snowstormlife.com. Worked like a charm. These instructions gave me a great head start. And I pointed Open Live Writer to it so I can compose from my laptop. Easy peasy.
I still need to . . .
-  create a post about my adventures in converting Miniblog into docker-able source code and putting it into an AKS cluster
-  create a post about creating the Azure DevOps pipeline from the Azure DevOps Service in the Azure portal – 5 minutes and done. Maybe a video would be better, since writing all the stuff down would take a lot longer.
-  and a few other odds and ends.
So, head on over to SnowstormLife.com and enjoy. . .
The site in it’s brand-new-baby form is alive and running in a Linux container-backed Azure website here. Again, just getting started with it, so nothing fancy at this point. I’ve learned a ton of stuff just getting this far — not just following some hands-on lab or quickstart tutorial, but having to look things up and try things out. Lots to blog about. I’ve been keeping a blog for forever on WordPress, but I’m going to use the new site to blog about this process.
Also, I used the Azure Portal’s DevOps Project feature to create the site with a docker container backing it, Azure Container Registry, an Azure DevOps CI/CD pipeline linked to this GitHub repo, etc. It took only 5 minutes to stand it up by answering 5 simple questions. (I’ll eventually put the blog in a Azure Kubernetes Service cluster, but I have a bit more learning / work to do so I don’t leave it hackable. 🙂
Update 2020.05.11 – I’m not going to keep snowstormlife.cloud. I’m too cheap to pay that much every year. 🙂 I’ve decided to revive my old domain name snowstormlife.com.
I also bought a custom domain name, Snowstormlife.cloud, where it lives. Current next steps are to create external storage for the blog so it doesn’t get blown away with each new container deployment. It’s currently using storage within the container, which isn’t good. As in, when I commit this change to master and the CI/CD pipeline runs, it’s going to blow away the container and anything I’ve posted on the site. 🙂 And I need to add an SSL cert to the site so it can do https…..
The App is based on MiniBlog.Core by Mads Kristensen
The ultimate goal is to
- Run Miniblog.Core safely and securely in AKS. (All proper network / security / healt checks / secrets management / yada yada yada) in place.
- Deploy updates to the engine in AKS through GitHub CI/CD pipelines, which will include container scans, etc., using blue/green pattern.
- The Docker image will be stored in the Azure Container Registry.
- And other things. . .
For now I’ll document my efforts along the way here in the MD file. Once I get the engine up & running in AKS I’ll start documenting things there.
I’m running Ubuntu in WSL (Windows Subsystem for Linux) on Windows 10. https://docs.microsoft.com/en-us/windows/wsl/install-win10
I also have Docker Desktop. It includes the Docker Engine, CLI client, Kubernetes, etc.
And I’m using Linux containers, not Windows Containers.
I cloned the Miniblog.Core repo from https://github.com/madskristensen/Miniblog.Core.git
There are a ton of DevOps best practices regarding people, process and tooling. Blog posts, books, videos, etc. DevOps is all about a transformative journey. It’s not just about CI/CD.
Even so, over the weekend I pulled together a list of best practices for Azure DevOps pipelines and GitHub repos. Some of it is overview info, some links contain hands on walkthroughs. You might notice there’s a bit of a Kubernetes flavor sprinkled around. That’s because I’ve been spending some time coming up to speed. There’s a lot to learn in that space. Anyway, here’s what I have so far:
- Automated testing in build / deployment pipelines
- Security scan, vulnerability scan
I’ve created a gist over on GitHub. I’ll post new items over there as I find them. . .