blog.bruyant.xyz

Tech & stuff. A blog about the making of a blog and whatever I feel like writing.

Self-hosting a static website on IPFS

Introduction Even though I haven’t written anything for a while, my self-hosting setup has seen quite a few changes behind the scenes. I’ve stopped using the Cloudflare IPFS Gateway, tried running an overengineered Kubernetes cluster in my living room, ported said cluster to Civo, before finally settling back to a simpler k3s cluster running on a Raspberry Pi. This post is meant to give an insight on my current setup, and to be a starting point for anyone wanting to do anything similar....

2022-04-19 · 6 min · Alexandre Bruyant

Automating Docker Swarm configs with Ansible

Introduction Docker Configs are a feature of Docker Swarm, that allow for the storing of non-sensitive information in a Docker Swarm cluster. They’re an alternative to bind mounts and environment variables. One of their main characteristics is that they’re immutable. That means that once they’re created, they can’t be updated. $ echo "This is my first config" | docker config create my-config - 3ysbxl9oq39qteo1wd57o3ttx $ echo "This is my second config" | docker config create my-config - Error response from daemon: rpc error: code = AlreadyExists desc = config my-config already exists While this is desirable when it comes to making sure all replicas are running with the same configuration, it makes it more difficult to rotate the configurations of a running service....

2021-12-04 · 6 min · Alexandre Bruyant

IPFS + Hugo = this

Introduction Welcome to the first post on this blog ! A few years back, I stumbled upon IPFS, the InterPlanetary File System. IPFS is a peer-to-peer hypermedia protocol. In a nutshell, it’s designed to store and share data among nodes running one of its implementations. I never really had an excuse to use it until now, when I decided to take the plunge and build a website and host it there....

2021-08-18 · 4 min · Alexandre Bruyant