Upgrade Python on macOS Big Sur using pyenv. Install Python 3.9.1 and update pip for smoother management.

Managing Python on macOS Big Sur

When Apple releases a new version of macOS it always takes a few months for everything to catchup, following my last blog post where I mentioned that I was having problems installing Python on macOS Big Sur↗ which meant that my preferred method of installing and managing Python using pyenv, which is documented in this blog post↗ , didn’t work out of the box — and the workarounds suggested workarounds on GitHub made my shell really slow....

January 10, 2021 · 2 min · Russ Mckendrick
Moving to Docker to run Ansible on macOS Big Sur

Ansible, Azure and macOS Big Sur

One of the annoying things about updating to the latest version of macOS is that a lot of the command-line tools I use tend to break or need tweaking slightly from how I have been using them. One of the annoyances in the move to Big Sur is that Python is a back to being a massive pain, and more so than normal. At the time of writing pyenv↗ is not running all that well, and while there are fixes available they slow down my shell — for more information on the problem see this GitHub issue↗ and for information on why pyenv see my previous post on updating Python on macOS↗ ....

December 28, 2020 · 3 min · Russ Mckendrick
Migrating Docker images to GitHub Container Registry with automated workflows. Updates Dockerfiles for each image.

Migrating my Docker images to the GitHub Container Registry

A few weeks after the final draft of the fourth edition of Mastering Docker ↗ was submitted Docker made the announcement that they would be making changes to the retention of images in Docker Hub as well as the introduction of rate limits. These changes make complete sense given that at the time of writing this post there are over 150 million images taking up over 15 PB of storage, of that 10 PB of the images haven’t been accessed in over 6 months and 4....

September 27, 2020 · 7 min · Russ Mckendrick
Explore GitHub Codespaces with Terraform for online IDE experience. Easily set up a workspace for infrastructure as code projects using Terraform and Ansible.

GitHub Codespaces and Terraform

I got my invite for GitHub Codespaces the other day and I thought I would have a quick play with it as having an an online IDE sounds like it could come in handy. If you know me — you will know that I am not a developer, but I do a lot of work in Visual Studio Code as that is where I tend to develop work on a lot of the infrastructure as code projects using Terraform and Ansible, as well as Docker projects....

September 20, 2020 · 3 min · Russ Mckendrick
Learn to create a robust Azure DevOps pipeline for Terraform deployments, managing infrastructure as code efficiently with Azure CLI and Terraform tasks.

Azure DevOps Terraform Pipeline

In my last post↗ I wrote about how I created an Azure DevOps pipeline using Ansible in a more “Terraform” way, however, although I have used Terraform and Azure DevOps quite a bit I realised I didn’t really have a template for a pipeline. Before we look at the pipeline itself I should point out that is uses the the Terraform Azure Pipeline extension by Microsoft DevLabs ↗ from the Visual Studio Marketplace↗ , if you are following along with this post please ensure that the extension is installed in your organisation before proceeding....

May 31, 2020 · 5 min · Russ Mckendrick
Streamline your DevOps workflows by setting up an Azure pipeline using Ansible playbooks. Learn how to integrate Azure CLI for faster results!

Azure DevOps Ansible Pipeline

I thought it was was about time that I started to have a play with Azure DevOps a little more than I have been doing, one of the things I have always meant to look at in the past is using DevOps to run Ansible playbooks. However the Ansible Task↗ recommended by Microsoft has always put me off, the reason for this is that this task requires a Virtual Machine to run Ansible — this to me always seemed a little overkill....

May 10, 2020 · 4 min · Russ Mckendrick
Learn how Ansible utilizes Azure REST API for efficient resource management, with insights on azure_rm_resource module and Visual Studio Code extension.

Ansible and the Azure Rest API

Over the last few months I have been doing more and more work with Ansible to manage end to end deployments in Azure. For the most part Ansible’s core set of Azure modules work with no problems and more than do the job. However, with the rate which Microsoft are both adding new features and functionality it is difficult to keep up. The core Ansible modules rely on several Azure python libraries to be updated before the functionality can be added or introduced to the core module set....

April 3, 2020 · 11 min · Russ Mckendrick
Upgrade to Python 3 on macOS using pyenv for easy installation and maintenance of different Python versions.

Upgrade Python on MacOS

The latest major version of Python 2 was originally release on 03/07/2010 and on 01/01/2020 Python 2 will be no more; We have decided that January 1, 2020, will be the day that we sunset Python 2. That means that we will not improve it anymore after that day, even if someone finds a security problem in it. You should upgrade to Python 3 as soon as you can. Interestingly the latest version of macOS still ships with Python 2....

December 29, 2019 · 2 min · Russ Mckendrick