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.
Rebuild the docs as a MkDocs site
1f8afe73515d58c14774878f30f33bfe318d0c3b · Keenan Nemetz · 21d ago · parent 7c02af12
Rebuild the docs as a MkDocs site Replace the mdBook configuration with MkDocs and a local theme that uses Vole's Everforest dark/medium palette. Move the contents order into nav, make docs/index.md the homepage, and carry the install, quickstart, deployment, and reference pages into the new tree. Add the docs build to verify, with pinned requirements and python3-venv in the image, so a broken nav entry or theme asset fails before a pages deploy.
docs/install.md +82
| @@ -0,0 +1,82 @@ | |||
| 1 | # Install | ||
| 2 | |||
| 3 | Three ways to get a `vole` binary. Pick the one that matches the machine you will | ||
| 4 | run it on. Every way ends the same: `vole version` prints a version. | ||
| 5 | |||
| 6 | | Way | Use it when | Needs | | ||
| 7 | |---|---|---| | ||
| 8 | | [Package](#package) | The machine runs Debian, Ubuntu, Fedora, RHEL, or Rocky | Nothing; the package pulls in Git and SQLite | | ||
| 9 | | [Release binary](#release-binary) | Another Linux machine, `amd64` or `arm64` | Git, and `libsqlite3` with FTS5 | | ||
| 10 | | [Build from source](#build-from-source) | You are changing Vole, or no binary fits | Go 1.27.4, a C compiler, SQLite headers | | ||
| 11 | |||
| 12 | You also want an SSH key. Vole uses it to recognise you when you push, and a key | ||
| 13 | you already use with another forge works. | ||
| 14 | |||
| 15 | ## Package | ||
| 16 | |||
| 17 | Download the `.deb` or `.rpm` for the machine's architecture from the | ||
| 18 | [release page](https://rodent.software/vole/releases), then install it with the | ||
| 19 | system package manager: | ||
| 20 | |||
| 21 | ```sh | ||
| 22 | sudo dpkg -i vole_0.2.0-1_amd64.deb # Debian, Ubuntu | ||
| 23 | sudo dnf install ./vole-0.2.0-1.x86_64.rpm # Fedora, RHEL, Rocky | ||
| 24 | ``` | ||
| 25 | |||
| 26 | The package installs the binary, a hardened systemd unit, and a configuration | ||
| 27 | file at `/etc/vole/vole.toml`. It has no apt or dnf repository behind it and no | ||
| 28 | signature yet, so each release page carries `SHA256SUMS`; compare it before you | ||
| 29 | install. [Packages](packaging.md) lists every path the package writes and how to | ||
| 30 | upgrade. | ||
| 31 | |||
| 32 | The deployment guides use this same file, on a machine that configures itself on | ||
| 33 | first boot: [Deploying](deploy/index.md). | ||
| 34 | |||
| 35 | ## Release binary | ||
| 36 | |||
| 37 | Each release attaches a binary per architecture, beside `SHA256SUMS`: | ||
| 38 | |||
| 39 | ```sh | ||
| 40 | tag=v0.2.0 | ||
| 41 | base=https://rodent.software/vole/releases/$tag/artifacts | ||
| 42 | curl -LO "$base/vole-linux-amd64" | ||
| 43 | curl -LO "$base/SHA256SUMS" | ||
| 44 | sha256sum -c --ignore-missing SHA256SUMS | ||
| 45 | install -m 0755 vole-linux-amd64 ~/.local/bin/vole | ||
| 46 | ``` | ||
| 47 | |||
| 48 | The binary links SQLite dynamically, so the machine needs `libsqlite3.so.0` | ||
| 49 | (`libsqlite3-0` on Debian and Ubuntu, `sqlite-libs` on Fedora, RHEL, and Rocky) | ||
| 50 | built with FTS5, which is what search uses. Every distribution listed enables it. | ||
| 51 | Git must be installed as well; Vole runs the real `git` rather than | ||
| 52 | reimplementing it. | ||
| 53 | |||
| 54 | Use `vole-linux-arm64` on an ARM machine. | ||
| 55 | |||
| 56 | ## Build from source | ||
| 57 | |||
| 58 | This is the path for working on Vole. It needs: | ||
| 59 | |||
| 60 | - Go 1.27.4 or newer. `go.mod` pins that toolchain, so an older `go` on your | ||
| 61 | `PATH` fetches it on the first build instead of failing. | ||
| 62 | - A C compiler and the SQLite development headers: `libsqlite3-dev` on Debian and | ||
| 63 | Ubuntu, `sqlite-devel` on Fedora and RHEL. Vole links SQLite dynamically, so the | ||
| 64 | binary still needs `libsqlite3.so.0` where it runs, and the library must have | ||
| 65 | FTS5. | ||
| 66 | |||
| 67 | ```sh | ||
| 68 | git clone <repository-url> | ||
| 69 | cd vole | ||
| 70 | go build -tags libsqlite3,sqlite_fts5 -o vole ./cmd/vole | ||
| 71 | ``` | ||
| 72 | |||
| 73 | `-tags sqlite_fts5` asks for the FTS5 module; `-tags libsqlite3` links the system | ||
| 74 | library instead of the driver's bundled copy, which is what the packages depend | ||
| 75 | on. Leaving out `libsqlite3` gives a binary that carries its own SQLite and works | ||
| 76 | on a machine without the development package. SQLite needs cgo, so `CGO_ENABLED=0` | ||
| 77 | builds nothing useful. | ||
| 78 | |||
| 79 | ## Next | ||
| 80 | |||
| 81 | [Quickstart](quickstart.md) takes an installed binary to a repository you can | ||
| 82 | clone. | ||