<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>bruyant.xyz</title>
    <link>https://blog.bruyant.xyz/</link>
    <description>Recent content on bruyant.xyz</description>
    <generator>Hugo -- 0.169.0</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 19 Apr 2022 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.bruyant.xyz/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Self-hosting a static website on IPFS</title>
      <link>https://blog.bruyant.xyz/posts/hosting-static-site-on-ipfs/</link>
      <pubDate>Tue, 19 Apr 2022 00:00:00 +0000</pubDate>
      <guid>https://blog.bruyant.xyz/posts/hosting-static-site-on-ipfs/</guid>
      <description>&lt;h1 id=&#34;introduction&#34;&gt;Introduction&lt;/h1&gt;
&lt;p&gt;Even though I haven&amp;rsquo;t written anything for a while, my self-hosting setup has seen quite a few changes behind the scenes. I&amp;rsquo;ve stopped using the Cloudflare IPFS Gateway, tried running an overengineered Kubernetes cluster in my living room, ported said cluster to &lt;a href=&#34;https://www.civo.com/&#34;&gt;Civo&lt;/a&gt;, before finally settling back to a simpler k3s cluster running on a Raspberry Pi.&lt;/p&gt;
&lt;p&gt;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. We&amp;rsquo;ll go through the steps to getting a static website up and running on IPFS.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Automating Docker Swarm configs with Ansible</title>
      <link>https://blog.bruyant.xyz/posts/automating-docker-configs/</link>
      <pubDate>Sat, 04 Dec 2021 00:00:00 +0000</pubDate>
      <guid>https://blog.bruyant.xyz/posts/automating-docker-configs/</guid>
      <description>&lt;h1 id=&#34;introduction&#34;&gt;Introduction&lt;/h1&gt;
&lt;p&gt;Docker Configs are a feature of Docker Swarm, that allow for the storing of non-sensitive information in a Docker Swarm cluster. They&amp;rsquo;re an alternative to bind mounts and environment variables.&lt;/p&gt;
&lt;p&gt;One of their main characteristics is that they&amp;rsquo;re immutable. That means that once they&amp;rsquo;re created, they can&amp;rsquo;t be updated.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;This is my first config&amp;#34;&lt;/span&gt; | docker config create my-config -
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;3ysbxl9oq39qteo1wd57o3ttx
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;This is my second config&amp;#34;&lt;/span&gt; | docker config create my-config -
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Error response from daemon: rpc error: code &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; AlreadyExists desc &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; config my-config already exists
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;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.
The details of this task are documented in the &lt;a href=&#34;https://docs.docker.com/engine/swarm/configs/#example-rotate-a-config&#34;&gt;Docker documentation&lt;/a&gt;. In essence, you have to do the following:&lt;/p&gt;</description>
    </item>
    <item>
      <title>IPFS &#43; Hugo = this</title>
      <link>https://blog.bruyant.xyz/posts/ipfs-hugo-this/</link>
      <pubDate>Wed, 18 Aug 2021 00:00:00 +0000</pubDate>
      <guid>https://blog.bruyant.xyz/posts/ipfs-hugo-this/</guid>
      <description>&lt;h1 id=&#34;introduction&#34;&gt;Introduction&lt;/h1&gt;
&lt;p&gt;Welcome to the first post on this blog !&lt;/p&gt;
&lt;p&gt;A few years back, I stumbled upon &lt;a href=&#34;https://ipfs.io&#34;&gt;IPFS&lt;/a&gt;, the InterPlanetary File System. IPFS is a peer-to-peer hypermedia protocol. In a nutshell, it&amp;rsquo;s designed to store and share data among nodes running one of its implementations.&lt;/p&gt;
&lt;p&gt;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. To do so, I chose to take advantage of &lt;a href=&#34;https://gohugo.io/&#34;&gt;Hugo&lt;/a&gt;, a static website generator.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
