Fork me on GitHub

Create Keys for an Application to Manage Azure

An application that wishes to access resources in your Azure subscription needs a “Service Principal” in order to avoid 2-factor authentication. This is essentially a “key” to use when authenticating against the service. This short post explains how to create a Service Principal using the Azure CLI.

Read More... Posted: 10 Feb 2016

Sharing Files Between Linux Hosts on Azure

Azure File Service provides a way to work with files that are common across multiple Virtual Machiens or Containers on Azure. In this post I’ll show how to mount shared directories on Linux Virtual Machines. In this post we’ll use the Azure CLI for all actions, though you can do most of this in the portal too.

Read More... Posted: 17 Jan 2016

Searching for a Cure for Cancer with Docker and Azure

The Folding@Home project allows me to use idle capacity on my Docker hosts to help search for a cure for Cancer (and other diseases like Alzheimers and Parkinson). Here’s how you can do it too.

Read More... Posted: 13 Sep 2015

Load Balancing for Docker Containers with HA Proxy

Load balancing is important for many applications. A popular open source load balancer is HAProxy. Here’s how I used an HAProxy container to automatically discover and load balance a simple web application.

Read More... Posted: 10 Sep 2015

Readme Files That Are Also Slide Decks

I hate doing work twice, don’t you? That’s why I built a Docker container that allows me to write readme files that are also slide decks. Here’s how to do it with Docker and Reveal.js.

Read More... Posted: 02 Sep 2015

Create a Simple Swarm Cluster on Azure with ARM

Azure Resource Manager Templates provide a way to manage Azure resources in code. In this post we’ll look at how to create a Docker Swarm cluster using an ARM template. This has some advantages over the docker-machine commands examined, such as creating each resource within a single resource group which makes it easier to manage going forwards as well as providing more control over the resources created.

Read More... Posted: 28 Aug 2015

Getting Started With Docker Swarm on Azure

Docker Swarm allows you to manage a cluster of Docker Hosts as if they were a single machine. All interactions with a Swarm cluster are carried out through the Docker API, consequently, any tool that can manage a Docker host machine can manage a Docker Swarm cluster. Here’s a quick “getting started” guide for Docker Swarm.

Read More... Posted: 23 Aug 2015

Simple Load Balancing for Docker Containers

Load balancing your web applications is important if you are growing (or have spikes of) traffic. Here’s how to set up a very simple load balanced solution in Docker Containers using HA Proxy.

Read More... Posted: 11 Aug 2015

Adding Related Posts to Jekyll Blogs

Stickyness is important on any site. Providing easy access to related posts is one way to improve stickyness. Here’s a simple way to achieve this on a Jekyll powered blog.

Read More... Posted: 28 Jul 2015

Install Docker and Docker Machine

Docker Machine lets you create Docker hosts on your computer, on cloud providers, and inside your own data center. It creates servers, installs Docker on them, then configures the Docker client to talk to them. Here’s how to use it to create Docker Hosts on Azure.

Read More... Posted: 27 Jul 2015

Adding an Edit Link to Github Pages in Jekyll

While I doubt there will be many people offering to fix my spelling errors (let alone improve my content), I don’t want to miss the chance that there is a contributor out there. Here’s how I added a link to each page on this Jekyll generated,GitHub pages hosted site.

Read More... Posted: 26 Jul 2015

Adding a Bing Search Box to a Website

GitHub pages provide no means for search and you can’t use Jekyll plugins, yet a site needs a search. So here’s a way to provide a Bing searchbox to a Jekyll generated website. Of course a Google, Yahoo! or whatever searchbox in some other form of website is just as easy.

Read More... Posted: 25 Jul 2015

Install the Cross Platform Azure CLI

There are many ways of managing your Azure subscription and the resources within it. One of the most flexible is with the Azure Command Line Interface. Here’s how to install the cross platform CLI on Linux, OS X or Windows.

Read More... Posted: 24 Jul 2015

Mounting Volumes in Boot2Docker on Hyper-V

Docker is awesome for development. However, when sharing volumes with Boot2Docker things don’t quite behave as expected (i.e. it doesn’t work). Here’s how to work around this on Windows.

Read More... Posted: 23 Jul 2015

Using Docker Machine to create a Docker Host on Azure

Docker Machine lets you create Docker hosts on your computer, on cloud providers, and inside your own data center. It creates servers, installs Docker on them, then configures the Docker client to talk to them. Here’s how to use it to create Docker Hosts on Azure.

Read More... Posted: 22 Jul 2015

Schedule Jekyll Posts for Publication

Since posts on this Jekyll powered blog are short and very much task focussed they tend to come in fits and starts. Here’s how to stagger their publication.

Read More... Posted: 21 Jul 2015

Adding a CSS GitHub Ribbon to a Jekyll Site

It is possible that someone might want to reuse some of the code on this blog, or maybe the Jekyll configuration that drives it. For this reason I’ve added an HTML+CSS “Fork Me on GitHub” ribbon, here’s how.

Read More... Posted: 20 Jul 2015

Experiments With Development Using Docker

I’ve been working with Docker for quite some time at Microsoft. A recent change in job function has seen me get even more involved. I have therefore started a GitHub project to experiment with using Docker in a Dev/Test/Deploy scenario.

Read More... Posted: 19 Jul 2015

Dockerizing a Jekyll Site

Having created my GitHub Pages hosted blog (powered by Jekyll) I need a better development environment. Committing and pushing changes to GitHub before I can see their effect is no good. So here are my notes on getting a Docker container with Jekyll up and running for local development.

Read More... Posted: 18 Jul 2015

Adding a Twitter Button to a Jekyll Blog

Jekyll Bootstrap is great, it got me up and running with this blog in next to no time. However, it is no longer maintained and doesn’t currently come with a a social sharing widget. Here’s how I added one to this site.

Read More... Posted: 18 Jul 2015

Adding Twitter Cards to a Jekyll Site

Twitter cards enable you to present more information to Twitter users who recieve a link to your site. Adding them to a Jekyll generated site is easy.

Read More... Posted: 18 Jul 2015

Creating a Jekyll Blog

I’ve not maintained a blog for a number of years, maybe now is the time to change that. My goal withthis blog is not to create and maintain high quality content, I have other outputs for the polished stuff. This is a place for me to keep notes, mostly for myself to come back to, but maybe others will find them useful as they explore the same technologies as I do.

Read More... Posted: 17 Jul 2015