2022-01-09 08:06:20 +01:00
|
|
|
# Vieter
|
|
|
|
|
2022-04-29 10:34:12 +02:00
|
|
|
I host documentation for Vieter over at https://rustybever.be/docs/vieter/. API
|
|
|
|
documentation for the current codebase can be found at
|
|
|
|
https://rustybever.be/api-docs/vieter/.
|
2022-04-09 21:53:54 +02:00
|
|
|
|
2022-06-20 17:31:05 +02:00
|
|
|
For more information, questions or just a chat, there's
|
|
|
|
[#vieter:rustybever.be](https://matrix.to/#/#vieter:rustybever.be) on Matrix!
|
|
|
|
|
2022-04-09 21:53:54 +02:00
|
|
|
## Overview
|
|
|
|
|
|
|
|
Vieter is a restart of the Pieter project. The goal is to create a simple,
|
|
|
|
lightweight self-hostable Arch repository server, paired with a system that
|
|
|
|
periodically builds & publishes select Arch packages. This would allow me to
|
|
|
|
build AUR packages (or PKGBUILDs I created myself) "in the cloud" & make sure I
|
|
|
|
never have to compile anything on my own systems, making my updates a lot
|
|
|
|
quicker.
|
2022-01-09 08:06:20 +01:00
|
|
|
|
|
|
|
## Why V?
|
|
|
|
|
|
|
|
I chose [V](https://vlang.io/) as I've been very intrigued by this language for
|
|
|
|
a while now. I wanted a fast language that I could code while relaxing, without
|
|
|
|
having to exert too much mental effort & V seemed like the right choice for
|
|
|
|
that.
|
|
|
|
|
|
|
|
## Features
|
|
|
|
|
2022-04-09 21:53:54 +02:00
|
|
|
* Arch repository server
|
|
|
|
* Support for multiple repositories & multiple architectures
|
|
|
|
* Endpoints for publishing new packages
|
|
|
|
* API for managing repositories to build
|
|
|
|
* Build system
|
|
|
|
* Periodic rebuilding of packages
|
|
|
|
* Prevent unnecessary rebuilds
|
|
|
|
|
|
|
|
## Building
|
|
|
|
|
2022-06-08 22:16:46 +02:00
|
|
|
Besides a V installer, Vieter also requires the following libraries to work:
|
2022-04-09 21:53:54 +02:00
|
|
|
|
|
|
|
* libarchive
|
|
|
|
* openssl
|
2022-06-08 22:16:46 +02:00
|
|
|
* sqlite3
|
|
|
|
|
2022-06-15 13:20:29 +02:00
|
|
|
Vieter also depends on some external V modules which you can install using `cd
|
|
|
|
src && v install`. Make sure to keep these dependencies up to date using `v
|
|
|
|
update`.
|
|
|
|
|
2022-06-08 22:16:46 +02:00
|
|
|
### Compiler
|
|
|
|
|
2022-08-13 13:16:31 +02:00
|
|
|
I used to maintain a mirror that tracked the latest master, but nowadays, I
|
2022-09-04 20:16:58 +02:00
|
|
|
maintain a Docker image containing the specific compiler version that Vieter
|
|
|
|
builds with. Currently, this is V 0.3.
|
2022-05-10 19:49:28 +02:00
|
|
|
|
|
|
|
## Contributing
|
|
|
|
|
|
|
|
If you wish to contribute to the project, please take note of the following:
|
|
|
|
|
|
|
|
* Rebase instead of merging whenever possible, e.g. when updating your branch
|
|
|
|
with the dev branch.
|
|
|
|
* Please follow the
|
|
|
|
[Conventional Commits](https://www.conventionalcommits.org/) style for your
|
|
|
|
commit messages.
|
2022-06-03 19:48:15 +02:00
|
|
|
|
|
|
|
### Writing documentation
|
|
|
|
|
|
|
|
The `docs` directory contains a Hugo site consisting of all user &
|
|
|
|
administrator documentation. `docs/api` on the other hand is a
|
2022-06-08 22:16:46 +02:00
|
|
|
[Slate](https://github.com/slatedocs/slate) project describing the HTTP web
|
2022-06-03 19:48:15 +02:00
|
|
|
API.
|
|
|
|
|
|
|
|
To modify the Hugo documentation, you'll need to install Hugo. Afterwards, you
|
|
|
|
can use the following commands inside the `docs` directory:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
# Build the documentation
|
|
|
|
hugo
|
|
|
|
|
|
|
|
# Host an auto-refreshing web server with the documentation. Important to note
|
2022-06-08 22:16:46 +02:00
|
|
|
# is that the files will be at `http://localhost:1313/docs/vieter` instead of
|
|
|
|
# just `http://localhost:1313/`
|
2022-06-03 19:48:15 +02:00
|
|
|
hugo server
|
|
|
|
```
|
|
|
|
|
|
|
|
For the Slate docs, I personally just start a docker container:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
docker run \
|
|
|
|
--rm \
|
|
|
|
-p 4567:4567 \
|
|
|
|
--name slate \
|
|
|
|
-v $(pwd)/docs/api/source:/srv/slate/source slatedocs/slate serve
|
|
|
|
```
|
|
|
|
|
2022-06-08 22:16:46 +02:00
|
|
|
This will make the Slate docs available at http://localhost:4567. Sadly, this
|
2022-06-03 19:48:15 +02:00
|
|
|
server doesn't auto-refresh, so you'll have to manually refresh your browser
|
|
|
|
every time you make a change.
|