carlok — zsh — 88×30
Carlo Perassi

$ grep -l podman _posts/*.md

#podman

26 posts tagged podman. Back to the full blog.

home.sh projects.sh blog.sh writing.sh math.sh cv.sh

kiwifarmit/ol-sbx-pg-failover-drill is public: failover drills for Patroni in Data Guard terms, with lost writes counted rather than estimated

kiwifarmit/ol-sbx-pg-failover-drill is now public: a pgdrill CLI that runs repeatable failure drills against a disposable three-node Patroni, etcd and HAProxy lab on Podman and reports measured RTO, RPO, in-doubt commits and split-brain per failure type — in the terms a DBA migrating off Oracle already signs SLAs in. Seven scenarios — kill the primary, shut it down cleanly, patronictl switchover, a partition that cuts the primary off from etcd and its peers while clients still reach it, DCS loss, failover with lagging replicas, both replicas down — run against three replication modes: async, sync and strict, the last of which maps onto Maximum Protection only partly, since PostgreSQL blocks commits instead of shutting down.

matrix-podman-stack: podman-compose 1.5 puts the stack in a pod that keep-id cannot live in

GitHub’s runners moved from podman-compose 1.0.6 to 1.5.0 and matrix-podman-stack stopped integrating: the scheduled run on 9 November and two Dependabot PRs failed, because 1.5 ignores COMPOSE_PROFILES and starts profiled services only through --profile. scripts/compose_stack.sh and the integration helper now pass --profile when the binary advertises the flag, and the systemd user unit starts and stops through that script (#41, eaf301b).

topshift-trend: under the new Python 3.13 builder the bot could not start at all, and the fault is a slot python-telegram-bot forgot to declare

Two days after moving the image to a Python 3.13 builder, production never came up: every container start died the same way, over 164k restarts, in Application.builder().build() → Updater.__init__ with AttributeError: '_Updater__polling_cleanup_cb'. The fault is python-telegram-bot#4127 — Updater declares __slots__ but assigns __polling_cleanup_cb without listing it, and below 3.13 the AsyncContextManager base still supplied a __dict__ for the stray attribute; 3.13 does not, so construction fails before polling starts (#13, 0563105).

topshift-trend: the Distroless runtime moves up to Debian 13 and a Python 3.13 builder

Four days after moving production to Distroless Python, the topshift-trend image is on the next base: a Python 3.13 builder stage, Distroless Debian 13 for the runtime, and pip 26.2.2 in the build (60668b0, #12). The point of the earlier change holds — no shell and no package manager in the shipped layer — and the interpreter in the venv still has to match the one that built it, which is what the pinned builder stage is for.

deck-lovers moves its server runtime to Distroless, with a healthcheck that needs no shell

deck-lovers now builds its server in two stages: python:3.11-slim-bookworm for the dependencies and gcr.io/distroless/python3-debian12:nonroot for the runtime, with the builder pinned to bookworm so its glibc matches the runtime’s (#6, 4c22adb). The catch was Python’s own path: Debian’s /usr/bin/python3 searches only dist-packages, so the packages pip installed with --prefix /usr/local were not importable and the container exited on No module named uvicorn until PYTHONPATH was set.

topshift-trend moves production to Distroless Python, and the venv had to be built by the right python

topshift-trend now builds its production image on gcr.io/distroless/python3-debian12:nonroot in a multi-stage Containerfile, with the virtualenv built on python:3.11-slim-bookworm to match the Distroless interpreter and requires-python relaxed to >=3.11 for it (#11, ead6607).

hermes-podman: pinned to Hermes v0.22.5, and the three things that make a healthy upgrade look broken

hermes-podman now pins docker.io/nousresearch/hermes-agent at v0.22.5@sha256:9c5561579f3f… in compose.yaml and in the quadlet deploy/hermes.container together, one commit for both sites, with the digest taken from the Docker Hub tag record rather than typed (8c044e1). The jump is from v0.21.6, so it crosses the release boundary where docs/UPGRADE.md had nothing to say.

caciarabot: a Distroless runtime halves the image, and CI now runs the config validator

caciarabot’s production stage moved from python:3.12-slim to gcr.io/distroless/python3-debian12:nonroot (#8, 2bfc4e2): no shell, no package manager, no curl, entrypoint still the exec-form python -m caciarabot.main, running as UID 65532 with /data prepared and owned in a slim runtime-prep stage. The built image drops from 213 MB to 114 MB.

matrix-podman-stack: an integration suite that runs the real stack, and pip-audit in CI

matrix-podman-stack grew the layer the unit tests could not reach. docs/testing-plan.md inventories the gaps, and the new suite closes them by running the actual containers: a Postgres 16→18 migration checked end to end through /health and through Matrix users, a room and messages that survive it, a Garage in-place upgrade driven with boto3, the NATS/Valkey bus hooks, and the monitoring profile including the Grafana datasource proxy query (#27, 1148def).

hermes-podman: a Renovate config that keeps compose and the quadlet on one tag@digest

hermes-podman pins its image by tag and digest in two places — compose.yaml through the docker-compose manager, deploy/hermes.container through the quadlet manager — and until now nothing kept the two in step. A branch adds renovate.json with docker:pinDigests so both move together (f4f2b52): minor and major Hermes bumps arrive grouped in one pull request, patches are skipped, and the GitHub Actions versions are batched weekly.

matrix-podman-stack: Postgres 18 with a migration script, a Synapse health smoke test, and a bot bus on nats-py 2.16 and redis 8.1

A day after going public, matrix-podman-stack moved both Postgres services to 18.6-bookworm with the official /var/lib/postgresql volume layout, and shipped upgrade-postgres.sh for data that is already on 16 — the reason the change is one pull request and not a compose edit (#23, 2669435). A migration that completes is not the same as a Synapse that starts, so verify-synapse-postgres.sh now walks the stack’s own /health endpoint after the upgrade and records what it saw (#25, d0ac04b).

matrix-podman-stack is public: a private Matrix server for Podman, where the bot accounts are configuration

matrix-podman-stack is now public: Synapse and its Postgres, Element Web, an optional mautrix-telegram bridge with a second Postgres, optional Prometheus and Grafana, and the helper scripts that provision the chat’s automation accounts. It is built for a small private group of humans and bots rather than for federation — no federation, no TURN, no bridge besides Telegram — and every container publishes on 127.0.0.1 only, because nginx stays on the host and terminates TLS there. Images are pinned (Synapse v1.163.2, Element v1.12.32, Postgres 16.9-bookworm, mautrix-telegram v0.2610.0), and the optional parts are compose profiles: telegram, monitoring, bus, object, vectors, llm. The stack itself landed as #1.

hermes-podman: the porting guide for a host that already ran Hermes natively

hermes-podman now carries the path it was missing: the rest of the repository assumes a fresh VM, and docs/PORTING-native-install.md covers the other arrival — a host that already ran Hermes as a git install, with ~/.hermes and a systemd unit, moving into the pinned container (#2, 6e4bba1). Everything in it comes from a port actually done against this deployment rather than from reading the code: what travels (the secrets, state.db moved with SQLite’s backup API, and repositories as a bind mount at the same path so absolute cron workdirs keep resolving, where about 5 of the 2.7 GB home is host-only and must not be copied), the HOME layout traps — the gateway runs with HOME=/opt/data while interactive sessions get /opt/data/home, both real, so scripts and prompts silently read the wrong ~/.hermes or ~/projects until two symlink shims fix it without editing them — and the tooling the image lacks (gh, jq, tirith, himalaya, sqlite3) with a /opt/data/.local/bin drop-in that keeps gh- and jq-based jobs working without touching the image.

hermes-podman is public: the headless Hermes Agent gateway on rootless Podman

hermes-podman is now public: the deployment behind this site’s own agent gateway, written down as a repository instead of shell history. A Hermes Agent container (nousresearch/hermes-agent:v0.21.6, pinned by digest as well as tag) runs rootless under Podman and podman-compose on an Ubuntu 26.04 host — as the normal user, with userns keep-id so data/ stays owned by that user, in gateway run mode only: no dashboard, no published ports, no browser tools, everything mutable in one BASE_DIR/data mounted at /opt/data (698f8af). A Makefile and scripts cover setup, up/down, verify, logs, chat, backup, restore, upgrade and uninstall, a Quadlet unit is offered as the compose alternative, CI exercises the whole lifecycle, and docs/DECISIONS.md records why each of those choices was made.

deck-lovers: the deploy script checks host ports before it builds

Podman only reports a host-port clash after the images are built, and only as an opaque “proxy already running” error that never names the port. The deploy script in deck-lovers now runs a pre-flight check in local serve mode before the build, naming the container or host process that is actually holding the port — 80 and 443 included when Caddy is started — while skipping this compose project’s own containers, so re-running over a live deck-lovers server still attaches instead of failing (5c07394).

forgepulse: rank-trend arrows in the repository signal table

forgepulse’s Repository signal table now carries a Billboard-chart-style up / down / stable indicator on every row, in both ranking modes, showing whether a repository moved since yesterday (9306fec). It tracks rank rather than the raw figure on purpose: clone volume ranks by total_clones, a cumulative counter that only ever grows, so diffing the value would read “up” almost every day regardless of real trend, while rank stays relative and keeps meaning.

forgepulse: manual refresh and an on-demand sync, behind a single-flight guard

forgepulse grew the two controls its dashboard was missing: Refresh re-fetches the stored dashboard and detail data without touching GitHub at all, while Sync now performs a real pull through the existing POST /api/v1/sync endpoint outside the hourly schedule and now surfaces the server’s error inline — an expired token says so immediately instead of failing silently until the next scheduled attempt (87cfe54). On-demand sync then exposed a contention bug worth fixing properly: the scheduled tick and the new endpoint shared one GitHub collector with no coordination, so a click landing during the hourly run let multiple full 84-repo syncs proceed at once, each with its own bounded per-repo fetch — enough load to trip secondary rate limiting and queue on SQLite’s single writer, turning overlap into a crawl rather than an error. A single-flight guard now rejects the second sync instead of letting the two contend (47b2e73).

forgepulse: the dashboard now shows when its numbers were last refreshed

forgepulse shows the age of its own data: the homepage now reads the most recent successful sync run — already recorded in the sync_runs table but never surfaced — and renders it next to the git-ref pill as Updated <UTC> · <local> (Xh Ym ago), ticking every minute (d4c5e85). Traffic history is only as useful as the moment it was collected, and until now the dashboard gave no way to tell a stale snapshot from a fresh one. The change touches two new frontend modules plus tests for the relative-time formatter and the API field behind it.

forgepulse: human attention ranking lands on main

forgepulse merged its first pull request, PR #1: human attention is now the default explainable ranking alongside clone volume. The dashboard persists fork history, collects release/tag and Actions-checkout signals, and shows each traffic diagnosis with its evidence inline. Clone-volume mode also gained sortable Stars/Views/Clones column headers (c69739b).

forgepulse v0.1.0: the baseline release

forgepulse hit its first tagged release, v0.1.0: the self-hosted GitHub traffic dashboard with retained clone and view history, repository analytics, charts, referrer and path snapshots, and JSONL export. The release note frames it explicitly as the baseline before the next feature — human attention ranking, which is already landing on the develop branch.

forgepulse: repos above the fleet's median clone count

forgepulse now highlights repositories whose clone counts sit above the fleet’s median, and the comparison was fixed to use each repo’s own daily median against the fleet’s rather than its raw total, so a busy repo can no longer skew its own marker.

forgepulse: routing and link-click fixes

forgepulse fixed two web-UI bugs: opening a repository detail page directly, or in a new tab, no longer 404s, and modifier-clicking a link now opens it in a new tab instead of swallowing the click. CI was retriggered after a GitHub Actions outage stalled the pipeline.

forgepulse: GitHub links on detail pages, gghstats issues checked

forgepulse’s repository detail page now links its title, top referrers, and popular paths straight to GitHub (paths always, referrers only when they look like real hostnames), and the JSONL export filename embeds a UTC timestamp so re-downloads stop silently overwriting the previous file. A cross-check against the issues opened on hrodrig/gghstats found that three of them applied to forgepulse too — the export filename, the stats-panel jargon, and the rank column header — and were fixed here; the locale-formatting issue does not apply in the same shape yet.

forgepulse: launch-week fixes and features

forgepulse got its launch-week pass: the repository table is paginated, a favicon landed, and the static “LOCAL” badge now shows the running git ref. On the ops side, a scheduled sync that was silently failing (the /data volume was never chowned to the app user) and a repository detail page that replayed every historical referrer day are fixed, and the production container now restarts itself after a crash or reboot.

forgepulse: self-hosted GitHub traffic-history analytics

forgepulse is now public: a self-hosted GitHub traffic-history analytics app built with Rust, a Svelte frontend, SQLite for storage, and Podman for deployment. It keeps a running history of GitHub traffic metrics so trends accumulate instead of vanishing after GitHub’s rolling window.

cold-path-server-podman: the Cold Path game server in a container

cold-path-server-podman is a new repository that runs the Cold Path multiplayer game server inside a Podman container, so no LuaJIT, LuaSocket, or LuaSec install is needed on the host. The upstream sources aren’t vendored — the image build pulls them from GitHub, and make build / make run / make logs handle the rest.