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.
Rewrite documentation around reader tasks
d1f44d838966c0a4762073f12375ec7562582fdf · Keenan Nemetz · 21h ago · parent 9103f6a8
docs/deploy/windows.md +53−17
| @@ -1,13 +1,12 @@ | |||
| 1 | # Deploy Vole on Windows | ||
| 1 | # Deploy on Windows | ||
| 2 | 2 | ||
| 3 | Windows support covers the forge server and the CLI client, not the CI runner. | ||
| 4 | The release publishes an MSI and an `install.ps1` that downloads it. The MSI is | ||
| 5 | not Authenticode-signed yet, so Windows shows an unknown-publisher prompt: check | ||
| 6 | the download against the release's GPG-signed `SHA256SUMS` instead of trusting | ||
| 7 | the prompt. Authenticode and winget are tracked in | ||
| 8 | [#408](https://rodent.software/vole/n/408). | ||
| 3 | !!! warning "The MSI is not Authenticode-signed" | ||
| 4 | Windows shows an unknown-publisher prompt. Check the download against the | ||
| 5 | release's GPG-signed `SHA256SUMS` instead of trusting the prompt. | ||
| 6 | Authenticode and winget are tracked in | ||
| 7 | [#408](https://rodent.software/vole/n/408). | ||
| 9 | 8 | ||
| 10 | ## What you need | ||
| 9 | ## Requirements | ||
| 11 | 10 | ||
| 12 | 11 | - Windows Server 2019 or later, or Windows 10/11, `amd64`. | |
| 13 | 12 | - **Git for Windows** with `git.exe` on the machine `PATH`. The server shells out | |
| @@ -110,23 +109,43 @@ foreach ($p in 80, 443, 2222) { | |||
| 110 | 109 | } | |
| 111 | 110 | ``` | |
| 112 | 111 | ||
| 113 | Open 22 instead of 2222 only if you later put the system `sshd` in front of Vole. | ||
| 114 | Close 80 once ACME has issued the certificate if you terminate HTTPS only on 443. | ||
| 112 | Keep port 80 open for HTTP-01 certificate renewal. Vole's built-in SSH listener | ||
| 113 | uses 2222; the sshd front door is not supported on Windows. | ||
| 115 | 114 | ||
| 116 | 115 | ## 5. Verify | |
| 117 | 116 | ||
| 118 | 117 | ```powershell | |
| 118 | & "C:\Program Files\Vole\vole.exe" version | ||
| 119 | 119 | curl.exe -sS -o NUL -w "%{http_code}`n" https://forge.example.com/ | |
| 120 | 120 | & "C:\Program Files\Vole\vole.exe" service status | |
| 121 | 121 | Get-Content "$env:ProgramData\Vole\data\logs\serve.log" -Tail 20 | |
| 122 | 122 | ``` | |
| 123 | 123 | ||
| 124 | The HTTP check should print `200`, and the service should report `Running`. | ||
| 125 | |||
| 124 | 126 | Then clone something from your own machine: | |
| 125 | 127 | ||
| 126 | 128 | ```sh | |
| 127 | 129 | git clone ssh://git@forge.example.com:2222/demo.git | |
| 128 | 130 | ``` | |
| 129 | 131 | ||
| 132 | ## MSI behavior | ||
| 133 | |||
| 134 | The MSI is built with wixl because WiX refuses to build anywhere but Windows and | ||
| 135 | the release runs on Linux. Its limits shape the package: it cannot preserve files | ||
| 136 | across an uninstall, edit `PATH`, or schedule rollback actions, so the | ||
| 137 | configuration and data directory belong to `vole service install` instead of the | ||
| 138 | package. | ||
| 139 | |||
| 140 | The MSI registers the `Vole` service by running `vole service install`, so the | ||
| 141 | account, recovery actions, and command line are the same for an MSI, | ||
| 142 | `install.ps1`, and a hand-run install. Uninstall stops and deletes the service | ||
| 143 | before the files go, and leaves the configuration and instance data in place. | ||
| 144 | |||
| 145 | Upgrading is installing a newer MSI. Pre-release tags have no MSI, because an MSI | ||
| 146 | version cannot carry a pre-release suffix; those releases publish the Windows | ||
| 147 | binary only. | ||
| 148 | |||
| 130 | 149 | ## Upgrading | |
| 131 | 150 | ||
| 132 | 151 | Install the newer MSI, or run `install.ps1` again; there is no separate upgrade | |
| @@ -140,7 +159,7 @@ The old product is removed before the new files are copied, so the running | |||
| 140 | 159 | service is stopped before its executable would be locked, and then the new | |
| 141 | 160 | version is installed, initialized, and started. The configuration and the data | |
| 142 | 161 | are untouched, and database migrations run on start. Back up before upgrading: | |
| 143 | [back up an instance](../operations.md#back-up-an-instance). | ||
| 162 | [back up an instance](../backup-and-restore.md#back-up-an-instance). | ||
| 144 | 163 | ||
| 145 | 164 | A pre-release tag has no MSI — an MSI version cannot carry a pre-release suffix | |
| 146 | 165 | here — so those releases publish the Windows binary only. Install one as | |
| @@ -165,16 +184,27 @@ what the MSI runs. | |||
| 165 | 184 | ||
| 166 | 185 | ## What is not supported yet | |
| 167 | 186 | ||
| 168 | - **The CI runner.** Container jobs need a container runtime; Windows containers | ||
| 169 | and WSL2 are a different architecture rather than a port. The forge serves | ||
| 170 | repositories and queues nothing it cannot build elsewhere. | ||
| 171 | - **The sshd front door** (`ssh_listen = "socket"`). It uses a unix-domain | ||
| 172 | socket, `exec`, and file modes; the built-in listener is the supported mode. | ||
| 187 | !!! warning "Windows is a server and client, not a runner" | ||
| 188 | Container jobs need a container runtime; Windows containers and WSL2 are a | ||
| 189 | different architecture rather than a port. The forge serves repositories and | ||
| 190 | queues nothing it cannot build elsewhere. | ||
| 191 | |||
| 173 | 192 | - **Authenticode signing and winget.** The MSI is unsigned, and there is no | |
| 174 | 193 | package-manager entry yet; see | |
| 175 | 194 | [#408](https://rodent.software/vole/n/408). arm64 is not built. | |
| 176 | 195 | ||
| 177 | ## Troubleshooting | ||
| 196 | ## Put sshd in front of Vole | ||
| 197 | |||
| 198 | Not supported on Windows: the front door needs a Unix-domain socket, `exec`, and | ||
| 199 | file modes. Keep `ssh_listen = "tcp"` and the built-in listener on 2222. A | ||
| 200 | separate Linux host runs the CI runner. | ||
| 201 | |||
| 202 | ## CI runners on Windows | ||
| 203 | |||
| 204 | The Windows package does not include the CI runner. Run CI on a separate Linux | ||
| 205 | machine; see [Set up a runner on Linux](linux.md#set-up-a-runner-on-linux). | ||
| 206 | |||
| 207 | ## Windows troubleshooting | ||
| 178 | 208 | ||
| 179 | 209 | - **The service did not start.** `vole service status` prints its state and | |
| 180 | 210 | command line, and the Application event log has the error under source | |
| @@ -191,3 +221,9 @@ what the MSI runs. | |||
| 191 | 221 | compare with `Get-Acl`. | |
| 192 | 222 | - **Git operations fail.** `git.exe` is not on the machine `PATH`. Services read | |
| 193 | 223 | the machine environment, not a user's. | |
| 224 | |||
| 225 | ## Next | ||
| 226 | |||
| 227 | - [Deploy on macOS](macos.md) — Homebrew and launchd. | ||
| 228 | - [Runners](../runner.md) — a runner needs a Linux host. | ||
| 229 | - [MSI behavior](#msi-behavior) — the package layout and upgrade path. | ||