vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Publish signed pacman repositories with each release
fbdb3818bc53560d022234c741c539e59c82bc41 · Keenan Nemetz · 14d ago · parent fd86ba87
Publish signed pacman repositories with each release Build Arch packages with the same nfpm contents, publish one pacman database per architecture, and sign the packages and databases with the release key. repo-add stamps tar entries from the clock, so the databases are repacked with the tag time before signing. The maintainer script becomes post_install/post_upgrade bodies, so it no longer exits the shell. Document pacman-key, SigLevel, installation, and upgrades, and build and verify the Arch tree in CI.
docs/packaging.md +29−22
| @@ -1,24 +1,28 @@ | |||
| 1 | 1 | # Packages and upgrades | |
| 2 | 2 | ||
| 3 | Vole provides `.deb` and `.rpm` packages for `amd64` and `arm64`. This page | ||
| 4 | describes the installed files, service sandbox, and upgrade procedure. For | ||
| 3 | Vole provides `.deb`, `.rpm`, and Arch packages for `amd64` and `arm64`. This | ||
| 4 | page describes the installed files, service sandbox, and upgrade procedure. For | ||
| 5 | 5 | installation, see [Install](install.md). | |
| 6 | 6 | ||
| 7 | 7 | ## Package repositories | |
| 8 | 8 | ||
| 9 | Each release publishes its packages inside `apt/` and `yum/` as well as at the | ||
| 10 | release root. The `apt/` tree is a flat Debian repository and `yum/` is an RPM | ||
| 11 | repository, so a channel URL works as a package source for either client. | ||
| 9 | Each release publishes its packages inside `apt/`, `yum/`, and | ||
| 10 | `pacman/<arch>/` as well as at the release root. The `apt/` tree is a flat | ||
| 11 | Debian repository, `yum/` is an RPM repository, and each `pacman/<arch>/` is a | ||
| 12 | signed Arch repository with `vole.db` and `vole.files`. A channel URL works as a | ||
| 13 | package source for all three clients. | ||
| 12 | 14 | [Install from the package repository](install.md#install-from-the-package-repository) | |
| 13 | shows the source lines, the upgrade commands, and how the signed repository is | ||
| 14 | verified. | ||
| 15 | |||
| 16 | Both trees carry both architectures: Debian and Ubuntu read `Packages` and the | ||
| 17 | signed `Release`/`InRelease` file, while Fedora, RHEL, and Rocky read | ||
| 18 | `repodata/repomd.xml` and its signature. The RPMs are signed individually, so | ||
| 19 | dnf checks each package as well as the metadata. Move the channel to a new | ||
| 20 | release to publish it; a machine following the channel picks the new version up | ||
| 21 | with its next upgrade. | ||
| 15 | shows the source lines, the upgrade commands, and how the signed repositories | ||
| 16 | are verified. | ||
| 17 | |||
| 18 | The apt and yum trees carry both architectures, while pacman has one database | ||
| 19 | per architecture: clients use `pacman/$arch`, which expands to `x86_64` or | ||
| 20 | `aarch64`. Debian and Ubuntu read `Packages` and the signed | ||
| 21 | `Release`/`InRelease` file; Fedora, RHEL, and Rocky read `repodata/repomd.xml` | ||
| 22 | and its signature; Arch reads `vole.db`, `vole.files`, and each package's | ||
| 23 | detached `.sig`. The RPMs and Arch packages are signed individually. Move the | ||
| 24 | channel to a new release to publish it; a machine following the channel picks | ||
| 25 | the new version up with its next upgrade. | ||
| 22 | 26 | ||
| 23 | 27 | ## What the package installs | |
| 24 | 28 | ||
| @@ -27,8 +31,8 @@ with its next upgrade. | |||
| 27 | 31 | | `/usr/bin/vole` | Vole binary with the release version embedded | | |
| 28 | 32 | | `/usr/lib/systemd/system/vole.service` | Hardened forge service | | |
| 29 | 33 | | `/usr/lib/systemd/system/vole-runner.service` | Runner service, disabled until configured | | |
| 30 | | `/etc/vole/vole.toml` | Forge configuration, preserved as a conffile | | ||
| 31 | | `/etc/vole/runner.env` | Runner arguments, preserved as a conffile | | ||
| 34 | | `/etc/vole/vole.toml` | Forge configuration, preserved as a conffile or Arch backup entry | | ||
| 35 | | `/etc/vole/runner.env` | Runner arguments, preserved as a conffile or Arch backup entry | | ||
| 32 | 36 | | `/etc/containers/registries.conf.d/50-vole-runner.conf` | Short-name registry resolution for rootless Podman | | |
| 33 | 37 | | `/etc/containers/containers.conf.d/50-vole-runner.conf` | `cgroupfs` configuration for the system runner unit | | |
| 34 | 38 | | `/usr/share/vole/sshd/vole.conf` | sshd drop-in for the front door; shipped, never installed | | |
| @@ -38,8 +42,8 @@ with its next upgrade. | |||
| 38 | 42 | | `/var/lib/vole/data` | Repositories, databases, objects, logs, secrets, and host key | | |
| 39 | 43 | ||
| 40 | 44 | The packages depend on Git and system SQLite: `libsqlite3-0` on Debian and | |
| 41 | Ubuntu, or `sqlite-libs` on Fedora, RHEL, and Rocky. The standalone binary has | ||
| 42 | the same runtime requirements; see | ||
| 45 | Ubuntu, `sqlite-libs` on Fedora, RHEL, and Rocky, or `sqlite` on Arch. The | ||
| 46 | standalone binary has the same runtime requirements; see | ||
| 43 | 47 | [Install a release binary](install.md#install-a-release-binary). | |
| 44 | 48 | ||
| 45 | 49 | Installation creates the `vole` service account, creates a `git` account for the | |
| @@ -98,10 +102,13 @@ Follow [Back up an instance](operations.md#back-up-an-instance), including | |||
| 98 | 102 | ||
| 99 | 103 | ### 2. Install the new package | |
| 100 | 104 | ||
| 101 | Install with `dpkg -i`, `apt install ./<package>`, or `dnf install ./<package>`. | ||
| 102 | On a machine pointed at the channel repository, use the package manager instead: | ||
| 103 | `sudo apt update && sudo apt upgrade vole`, or `sudo dnf upgrade vole`. The new | ||
| 104 | release is available once the channel names it. | ||
| 105 | Install with `dpkg -i`, `apt install ./<package>`, `dnf install ./<package>`, or | ||
| 106 | `pacman -U ./<package>`. On a machine pointed at the channel repository, use the | ||
| 107 | package manager instead: `sudo apt update && sudo apt upgrade vole`, | ||
| 108 | `sudo dnf upgrade vole`, or `sudo pacman -Syu vole`. The new release is available | ||
| 109 | once the channel names it. A prerelease such as `0.1.0-rc2` is | ||
| 110 | `0.1.0rc2-1` in an Arch package, because Arch's package version cannot carry a | ||
| 111 | semver hyphen. | ||
| 105 | 112 | ||
| 106 | 113 | Upgrading also creates the `git` account and `/run/vole` the first time this | |
| 107 | 114 | version is installed, whether or not you intend to use the front door. An existing | |