diff --git a/docs/config.toml b/docs/config.toml index 61aa3ae2..d0eecb27 100644 --- a/docs/config.toml +++ b/docs/config.toml @@ -7,7 +7,7 @@ theme = 'hugo-book' # Book configuration disablePathToLower = true # Doesn't work with docs as subdir -enableGitInfo = false +enableGitInfo = true # Needed for mermaid/katex shortcodes [markup] @@ -29,7 +29,7 @@ enableGitInfo = false [menu] [[menu.after]] - name = "API Documentation" + name = "HTTP API Docs" url = "https://rustybever.be/docs/vieter/api/" weight = 10 [[menu.after]] @@ -37,8 +37,8 @@ enableGitInfo = false url = "https://rustybever.be/man/vieter/vieter.1.html" weight = 20 [[menu.after]] - name = "Source" - url = "https://git.rustybever.be/Chewing_Bever/docs" + name = "Git" + url = "https://git.rustybever.be/vieter/vieter" weight = 30 [[menu.after]] name = "Hugo Theme" @@ -70,14 +70,14 @@ enableGitInfo = false # Set source repository location. # Used for 'Last Modified' and 'Edit this page' links. - BookRepo = 'https://git.rustybever.be/vieter/vieter/docs' + BookRepo = 'https://git.rustybever.be/vieter/vieter' # (Optional, default 'commit') Specifies commit portion of the link to the page's last modified # commit hash for 'doc' page type. # Requires 'BookRepo' param. # Value used to construct a URL consisting of BookRepo/BookCommitPath/ # Github uses 'commit', Bitbucket uses 'commits' - # BookCommitPath = 'commit' + BookCommitPath = 'src/commit' # Enable "Edit this page" links for 'doc' page type. # Disabled by default. Uncomment to enable. Requires 'BookRepo' param. diff --git a/docs/content/installation.md b/docs/content/installation.md index 5cc7a0ee..2cf57e79 100644 --- a/docs/content/installation.md +++ b/docs/content/installation.md @@ -53,11 +53,26 @@ services: - 'VIETER_DEFAULT_ARCH=x86_64' - 'VIETER_MAX_CONCURRENT_BUILDS=2' - 'VIETER_GLOBAL_SCHEDULE=0 3' + volumes: + - '/var/run/docker.sock:/var/run/docker.sock' volumes: data: ``` +If you do not require the build system, the repository server can be used +independently as well. + +{{< hint info >}} +**Note** +Builds are executed on the cron daemon's system using the host's Docker daemon. +A cron daemon on a specific architecture will only build packages for that +specific architecture. Therefore, if you wish to build packages for both +`x86_64` & `aarch64`, you'll have to deploy two cron daemons, one on each +architecture. Afterwards, any Git repositories enabled for those two +architectures will build on both. +{{< /hint >}} + ## Binary On the diff --git a/docs/content/usage/_index.md b/docs/content/usage/_index.md new file mode 100644 index 00000000..bb0376fd --- /dev/null +++ b/docs/content/usage/_index.md @@ -0,0 +1,4 @@ +# Usage + +This section describes how to use the various parts of Vieter. It assumes you +have a Vieter repository server up and running. diff --git a/docs/content/usage/repository.md b/docs/content/usage/repository.md new file mode 100644 index 00000000..c30c8ca1 --- /dev/null +++ b/docs/content/usage/repository.md @@ -0,0 +1,38 @@ +# Pacman repository + +The part of Vieter that users will interact with the most is the Pacman +repository aka `vieter server`. + +## Design overview + +A Vieter repository server has support for multiple repositories, with each +repository containing packages for multiple architectures. + +If you wish to use these repositories on your system, add the following to +`/etc/pacman.conf` for each repository you wish to use: + +``` +[repo-name] +Server = https://example.com/$repo/$arch +SigLevel = Optional +``` + +Here, `$repo` & `$arch` are not variables you have to fill in yourself. Rather, +Pacman will substitute these when reading the config file. `$repo` is replaced +by the name between the square brackets (in this case `repo-name`), & `$arch` +is replaced by your system's architecture, e.g. `x86_64`. Of course, you can +also fill in these values manually yourself, e.g. if you wish to use a +different name inside the square brackets. + +Important to note is that, when two repositories contain a package with the +same name, Pacman will choose the one from the repository that's highest up in +the `pacman.conf` file. Therefore, if you know your repository has packages +with the same name as ones from the official repositories, it might be better +to place the repository below the official repositories to avoid overwriting +official packages. + +## Publishing packages + +Packages can be easily published using a single HTTP POST request. Check out +the [HTTP API docs](https://rustybever.be/docs/vieter/api/) for more info on +these routes, including example cURL commands. diff --git a/docs/content/usage.md b/docs/content/usage/usage.md similarity index 100% rename from docs/content/usage.md rename to docs/content/usage/usage.md