« Back to home

From Debian to CoreOS

Moving to CoreOS Just a quick entry here. Historically this site has been running on a Digital Ocean Debian droplet. I liked having a remote Linux host that I could run random things on, including this blog. However, recently I’ve only been using it to run things within Docker containers. Since CoreOS was designed for exactly this purpose, I decided to try setting up a single-host cluster as a DO droplet.…

Read more »

Docker lifecycle with Caddy

Caddy was recently updated to 0.8.31. My website’s Docker image was built with the previous version, so I had to update the corresponding Dockerfile and rebuild it on the Docker Hub2. To update the container running on my DigitalOcean droplet, I just ran the following: docker pull steeef/stp5net docker stop stp5net docker rm stp5net docker run -d –restart unless-stopped <environment-specific-options-here> –name stp5net steeef/stp5net Notice I’m using the –restart unless-stopped restart policy3 for the run command.…

Read more »

Caddy and Let's Encrypt

Note: this is a follow-up to my earlier post on setting up Caddy with Docker, which is here. I’ve just enabled Caddy’s Automatic HTTPS function, which leverages Let’s Encrypt to generate a key and get a signed certificate as soon as the server starts up. It’s free and simple. Awesome! I was able to figure this out by reading the official documetation on Automatic HTTPS1 and Abiola Ibrahim’s example Dockerfile for Caddy, which included a nice section on how to persist the .…

Read more »

Using Docker in OS X with DLite

The Past If you’ve ever used Docker in OS X, you’re probably familiar with the pain of being forced to run a Linux VM to test Docker containers. I’ve personally spent hours troubleshooting problems while using boot2docker and its successor, docker-machine. Historically, relying on VirtualBox for anything in OS X development has never been painless (though I’ll admit it’s improved over the past few years). xhyve Luckily, there’s a better way.…

Read more »

Creating my blog with Docker, Hugo, and Caddy

A lonely web server I pay for a small DigitalOcean droplet running Debian. I originally created it just to have a remote server with which to play around with various tools. One of which was to host a static site via nginx running in a Docker container. Nothing’s really changed with it since that initial setup, save running the container with systemd-nspawn1. Let’s get blogging Fast forward a few years, and I’ve been itching to try out some newer technologies.…

Read more »