Skip to main content


Showing posts from December, 2018

Test your Python3 code in VSCode with a Docker container

With great code, comes great testing (or so we hope).

This blog post will require the following:

1. VSCode installed.
2. Docker extension in VSCode.
3) Docker for Mac or Windows.
4. A Mac or Windows device.
5. Tissues to wipe your tears of joy from how exciting containers & Python are.

Today we're going to talk about testing our Python code in a Docker container. There can be instances where this doesn't work and a VM would be better for your purposes. However, if you're building distributed systems/applications, you want to know how your code will interact in a containerized environment. This is also a really good practice if you're going over some training material. Whenever I go over training material, whether that be learning some new in Python, testing code, or even testing the way an application integrates with a system, I want something fast, easy, and smooth. It takes time to spin up a VM and test when we can just use a container. Let's get started!


Kubernetes on Google Cloud Platform - Part 1 Set up GCP

Moving into a containerized world can be tricky and confusing at first. The orchestration portion of containers and the ability to scale them can be the trickiest. In this 3 part series, we're going to go over spinning up Kubernetes in Google Cloud Platform. Kubernetes original design was built by Google itself, so what other better place to test and host our Kubernetes cluster?

Please Note: To follow along in this blog post, this will require a credit card. This is so Google can confirm identity. Google will give a free 300 credit for at the time of writing this is 12 months.

The first thing we want to do is head over to and confirm you have a Gmail account. Next, let's click the "try free" button.

Next, let's click through the EULA and confirm your information on step 2. (You will see a second screen that is different than mine. I did not show a screenshot due to personal information)

You should see a "Creating project" screen…

Docker on Windows - Part 3 Creating A Container with Docker Compose

Welcome back and thank you for checking out my third and final blog post in the series of running Docker on Windows. In the first blog post, we set up Docker on Windows. On the second, we spun up an Nginx container. Today, we're going to spin up an Nginx container, but do it the automated way with Docker Compose! Docker Compose is a manifest file of your container and it's settings. You can have one container in your Docker Compose file or multiple. Let's get started.

First, let's confirm Docker Compose is installed and running on your system. Open up PowerShell and run:

If you see several switches and commands, you are good to go! If not, please confirm you installed Docker with the instructions in the first blog post of this series.

Next, we're going to open up VSCode. If you do not have VSCode installed, please do so by following this link:

Once VSCode is open, we want to ensure we have a few extensions. Those two ext…