Quick Tip: List docker images sorted by size

The docker image ls command has an option for filtering output but what if we want to sort the images to find the really hefty ones? You know, the ones that might need to go the way of Old Yeller. Huh? What’s that, docker? You can’t do that. If you want something done right… It ain’t pretty but it works. docker image ls --format "{{.Repository}}:{{.Tag}} {{.Size}}" | \ awk '{if ($2~/GB/) print substr($2, 1, length($2)-2) * 1000 "MB - " $1 ; else print $2 " - " $1 }' | \ sed '/^0/d' | \ sort -n Side Note [Read More]

DevOps Tools 101 - Consul

DevOps Tools 101 is a series of posts outlining in easy to digest form, the tools available and in use by the DevOps community. Today we’ll be learning about Consul by Hashicorp. The Official Description From Hashicorp’s site Consul is a service mesh solution providing a full featured control plane with service discovery, configuration, and segmentation functionality. The Breakdown service mesh solution - a solution that allows individual services to discover and communicate quickly/securely/reliably with each other [Read More]

Deploying a dockerized two-tier app on Kubernetes

For a great deal of developers, myself included, doing something is the preferred method of learning as opposed to reading how to do it. When I was wrapping my head around using kubernetes to manage my docker containers, I found that creating a deployment from scratch was invaluable. I’d like to walk you through that deployment and explain everything along the way. Before we jump in, you’ll need to have: [Read More]

Quick Tip: Make a directory and enter it with one command

We all make directories. It’s one way that we attempt to bring order to the chaos that is the filesystem. We’re also pretty lazy. Creating a new directory and navigating into it is usually a two command affair: mkdir order-i-say cd order-i-say Not anymore it isn’t: mkdir quickly-now && cd $_ Explanation $_ is the last argument passed to the previous command. In our case, it’s the directory name. There’s a lot more here. [Read More]

Running a Hugo generated site on Github Pages and Google Cloud Storage

Hugo, I just recently discovered, is one of many static site generators. You feed them content in the form of Markdown files and they spit out HTML pages which you can then provide to a web server for hosting. This in and of itself might not be very interesting but the potential hosting environments are what particularly interest me. Why go static? Since the pages are HTML, you don’t need to worry about having a server dynamically render a page when a user makes a request to your site. [Read More]
hugo  gcs